@norskvideo/ctl-commands 0.1.0 → 0.1.2

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 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
  } | {
@@ -138,6 +140,9 @@ export type Command = {
138
140
  kind: "template.import";
139
141
  file: string;
140
142
  opts: TemplateImportOpts;
143
+ } | {
144
+ kind: "template.refresh";
145
+ name: string;
141
146
  } | {
142
147
  kind: "template.remove";
143
148
  name: string;
@@ -307,6 +312,11 @@ export declare const commands: {
307
312
  readonly name: string;
308
313
  }>;
309
314
  };
315
+ readonly shm: {
316
+ readonly list: LeafCmd<() => {
317
+ readonly kind: "shm.list";
318
+ }>;
319
+ };
310
320
  readonly template: {
311
321
  readonly list: LeafCmd<() => {
312
322
  readonly kind: "template.list";
@@ -324,6 +334,10 @@ export declare const commands: {
324
334
  readonly file: string;
325
335
  readonly opts: TemplateImportOpts;
326
336
  }>;
337
+ readonly refresh: LeafCmd<(name: string) => {
338
+ readonly kind: "template.refresh";
339
+ readonly name: string;
340
+ }>;
327
341
  readonly remove: LeafCmd<(name: string) => {
328
342
  readonly kind: "template.remove";
329
343
  readonly name: string;
package/commands.js CHANGED
@@ -52,11 +52,15 @@ 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 })),
58
61
  default: leaf("default <product>", (product) => ({ kind: "template.default", product })),
59
62
  import: leaf("import <file>", (file, opts) => ({ kind: "template.import", file, opts })),
63
+ refresh: leaf("refresh <name>", (name) => ({ kind: "template.refresh", name })),
60
64
  remove: leaf("remove <name>", (name) => ({ kind: "template.remove", name })),
61
65
  },
62
66
  proxy: {
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":
@@ -86,6 +88,8 @@ export function toArgv(cmd) {
86
88
  return ["template", "default", cmd.product];
87
89
  case "template.import":
88
90
  return ["template", "import", cmd.file, ...formatOpts(cmd.opts)];
91
+ case "template.refresh":
92
+ return ["template", "refresh", cmd.name];
89
93
  case "template.remove":
90
94
  return ["template", "remove", cmd.name];
91
95
  case "mcp":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-commands",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {