You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Pckgd/README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,26 +17,29 @@ be located in the first 100 lines of the script, and must be located immediately
17
17
demarcation is used (explained below), the headers must be *above* the demarcation.
18
18
The headers are:
19
19
20
-
-`# Pckgd`- Required as the first of these headers. No value. Identifies the file as part of a Pckgd package, and
20
+
-`# Pckgd` Required as the first of these headers. No value. Identifies the file as part of a Pckgd package, and
21
21
indicates where these headers are in the file. Without this header, the script won't be found in the query for
22
22
packages, and the headers won't be found in the file.
23
-
-`# Updates from:`- Required for updates. An identifier of where updates should come from. Two types of values are allowed:
23
+
-`# Updates from:` Required for updates. An identifier of where updates should come from. Two types of values are allowed:
24
24
- A URL to a text file: e.g. `# Updates from: https://example.com/mypackage-latest.txt`
25
25
- A GitHub repository in the format `GitHub/username/repo/path/to/file.py`: e.g. `# Updates from: GitHub/TenthPres/TouchPointScripts/Pckgd/Pckgd.py`
26
-
-`# Title:`- Optional, but recommended. The human-readable name of the package. This is the name shown in the UI.
27
-
-`# Description:`- Optional, but recommended. A brief description of what the package does.
28
-
-`# Depends on:`- Optional. A comma-separated list of other Pckgd scripts (with extensions) that this script depends
26
+
-`# Title:` Optional, but recommended. The human-readable name of the package. This is the name shown in the UI.
27
+
-`# Description:` Optional, but recommended. A brief description of what the package does.
28
+
-`# Depends on:` Optional. A comma-separated list of other Pckgd scripts (with extensions) that this script depends
29
29
on. For example, if a python script depends on a SQL file, this header might be something like `# Depends on: MyScript.sql`.
30
30
When dependencies are defined, they will be provided as part of installation, provided they are available in the same
31
31
source and directory as the current file.
32
-
-`# Version:`- Optional. The current version of the script. Must contain hex characters and dots only (e.g. `1.0.0`, `2.1`, `2024.06.15`, `adcf1234`).
32
+
-`# Version:` Optional. The current version of the script. Must contain hex characters and dots only (e.g. `1.0.0`, `2.1`, `2024.06.15`, `adcf1234`).
33
33
- If not provided, a hash will be generated on a per-file basis to determine if a new version is available.
34
34
- If a version is provided in the source file (e.g. on GitHub), only the version numbers will be compared, not the content of the script. Therefore, if you use this parameter, to make clients see a new update as being available, you *must* change the version number on the repository.
35
35
- If you want every new update published on your repository to be treated as a new version, leave this header out.
36
-
-`# License:` - Optional. The license under which the package is provided.
37
-
-`# Author:` - Optional. The author of the package.
38
-
-`# Header color:` - Optional. A hex color code (e.g. `#FF0000`) to use as the header color in the UI. If one is not provided, a color is generated from a hash of the file name.
39
-
-`# Header image:` - Optional. A URL to an image to use as the header image in the UI.
36
+
-`# License:` Optional. The license under which the package is provided.
37
+
-`# Author:` Optional. The author of the package.
38
+
-`# Header color:` Optional. A hex color code (e.g. `#FF0000`) to use as the header color in the UI. If one is not provided, a color is generated from a hash of the file name.
39
+
-`# Header image:` Optional. A URL to an image to use as the header image in the UI.
40
+
-`# Editable:` Optional, True or False. If your script contains the "stop editing" demarcation (explained below),
41
+
*for other purposes*, you can set this to `False` to prevent confusion about whether the script is editable. Default
0 commit comments