document360-writer 0.5.50 → 0.5.52
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/dist/cli.js +90 -90
- package/dist/lib/quickOptions.d.ts +13 -1
- package/package.json +1 -1
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/** A quick-run option is either a bare command line (description derived from the catalog) OR a
|
|
2
|
+
command plus a CONTEXTUAL description that travels with it — so a CTA can say exactly what each
|
|
3
|
+
key does in this moment (e.g. "/check" = "re-scan", vs the catalog blurb). The description riding
|
|
4
|
+
on the option means it can never go stale or mismatch the command (no parallel side-map to sync). */
|
|
5
|
+
export type QuickOption = string | {
|
|
6
|
+
cmd: string;
|
|
7
|
+
desc: string;
|
|
8
|
+
};
|
|
9
|
+
/** The command line of a quick option, whichever form it takes. */
|
|
10
|
+
export declare function optCmd(o: QuickOption): string;
|
|
11
|
+
/** The contextual description of a quick option, or undefined for a bare command (→ catalog fallback). */
|
|
12
|
+
export declare function optDesc(o: QuickOption): string | undefined;
|
|
1
13
|
/** The argument portion of a command line ("/publish --all" → "--all", "/audit" → ""). */
|
|
2
14
|
export declare function argOf(cmd: string): string;
|
|
3
15
|
/**
|
|
@@ -9,4 +21,4 @@ export declare function argOf(cmd: string): string;
|
|
|
9
21
|
* - Otherwise the user went off-script (e.g. "/reset" while "/publish --all" was offered) → clear all,
|
|
10
22
|
* so a now-irrelevant suggestion can't linger into the new context (SNAG-0127).
|
|
11
23
|
*/
|
|
12
|
-
export declare function nextQuickOptions(prev:
|
|
24
|
+
export declare function nextQuickOptions(prev: QuickOption[], executed: string): QuickOption[];
|
package/package.json
CHANGED