@norskvideo/ctl-commands 0.1.0 → 0.1.1
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/commands.d.ts +7 -0
- package/commands.js +3 -0
- package/format.js +2 -0
- package/package.json +1 -1
package/commands.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ export type Command = {
|
|
|
126
126
|
} | {
|
|
127
127
|
kind: "orphaned-dirs.clear";
|
|
128
128
|
id: string;
|
|
129
|
+
} | {
|
|
130
|
+
kind: "shm.list";
|
|
129
131
|
} | {
|
|
130
132
|
kind: "template.list";
|
|
131
133
|
} | {
|
|
@@ -307,6 +309,11 @@ export declare const commands: {
|
|
|
307
309
|
readonly name: string;
|
|
308
310
|
}>;
|
|
309
311
|
};
|
|
312
|
+
readonly shm: {
|
|
313
|
+
readonly list: LeafCmd<() => {
|
|
314
|
+
readonly kind: "shm.list";
|
|
315
|
+
}>;
|
|
316
|
+
};
|
|
310
317
|
readonly template: {
|
|
311
318
|
readonly list: LeafCmd<() => {
|
|
312
319
|
readonly kind: "template.list";
|
package/commands.js
CHANGED
|
@@ -52,6 +52,9 @@ export const commands = {
|
|
|
52
52
|
reload: leaf("reload <name>", (name) => ({ kind: "product.reload", name })),
|
|
53
53
|
pull: leaf("pull <name>", (name) => ({ kind: "product.pull", name })),
|
|
54
54
|
},
|
|
55
|
+
shm: {
|
|
56
|
+
list: leaf("list", () => ({ kind: "shm.list" })),
|
|
57
|
+
},
|
|
55
58
|
template: {
|
|
56
59
|
list: leaf("list", () => ({ kind: "template.list" })),
|
|
57
60
|
show: leaf("show <name>", (name) => ({ kind: "template.show", name })),
|
package/format.js
CHANGED
|
@@ -78,6 +78,8 @@ export function toArgv(cmd) {
|
|
|
78
78
|
return ["product", "reload", cmd.name];
|
|
79
79
|
case "product.pull":
|
|
80
80
|
return ["product", "pull", cmd.name];
|
|
81
|
+
case "shm.list":
|
|
82
|
+
return ["shm", "list"];
|
|
81
83
|
case "template.list":
|
|
82
84
|
return ["template", "list"];
|
|
83
85
|
case "template.show":
|