@dench.com/cli 3.8.3-staging.398 → 3.8.4-staging.400
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/command-args.ts +13 -1
- package/package.json +1 -1
package/lib/command-args.ts
CHANGED
|
@@ -144,7 +144,19 @@ export const COMMAND_ARGUMENTS = [
|
|
|
144
144
|
spec(`cron ${verb}`, [1, 1]),
|
|
145
145
|
),
|
|
146
146
|
...FILE_COMMAND_ARGUMENTS,
|
|
147
|
-
|
|
147
|
+
{
|
|
148
|
+
...spec("stage", [1, 2], "", "--clean"),
|
|
149
|
+
usage: "dench stage <local-path> [<workspace-dest>] [--clean] [--json]",
|
|
150
|
+
description:
|
|
151
|
+
"Upload a local file or directory into Dench workspace storage.",
|
|
152
|
+
examples: ["dench stage /tmp/report.csv /reports/report.csv --json"],
|
|
153
|
+
notes: [
|
|
154
|
+
"The local source must be outside /workspace. Create scratch files under /tmp before staging them.",
|
|
155
|
+
"The destination is a saved workspace path, not a directory to create on local disk. It defaults to /<source-basename>.",
|
|
156
|
+
"--clean deletes existing workspace files under the destination before uploading.",
|
|
157
|
+
"To save text directly from stdin, use dench files write <workspace-path> --json.",
|
|
158
|
+
],
|
|
159
|
+
},
|
|
148
160
|
...["identity", "organisation", "user", "tools", "mem"].flatMap((group) =>
|
|
149
161
|
["edit", "set"].map((verb) =>
|
|
150
162
|
spec(`${group} ${verb}`, [0, 0], "--content", "--stdin"),
|