@norskvideo/ctl-commands 0.1.1 → 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
@@ -140,6 +140,9 @@ export type Command = {
140
140
  kind: "template.import";
141
141
  file: string;
142
142
  opts: TemplateImportOpts;
143
+ } | {
144
+ kind: "template.refresh";
145
+ name: string;
143
146
  } | {
144
147
  kind: "template.remove";
145
148
  name: string;
@@ -331,6 +334,10 @@ export declare const commands: {
331
334
  readonly file: string;
332
335
  readonly opts: TemplateImportOpts;
333
336
  }>;
337
+ readonly refresh: LeafCmd<(name: string) => {
338
+ readonly kind: "template.refresh";
339
+ readonly name: string;
340
+ }>;
334
341
  readonly remove: LeafCmd<(name: string) => {
335
342
  readonly kind: "template.remove";
336
343
  readonly name: string;
package/commands.js CHANGED
@@ -60,6 +60,7 @@ export const commands = {
60
60
  show: leaf("show <name>", (name) => ({ kind: "template.show", name })),
61
61
  default: leaf("default <product>", (product) => ({ kind: "template.default", product })),
62
62
  import: leaf("import <file>", (file, opts) => ({ kind: "template.import", file, opts })),
63
+ refresh: leaf("refresh <name>", (name) => ({ kind: "template.refresh", name })),
63
64
  remove: leaf("remove <name>", (name) => ({ kind: "template.remove", name })),
64
65
  },
65
66
  proxy: {
package/format.js CHANGED
@@ -88,6 +88,8 @@ export function toArgv(cmd) {
88
88
  return ["template", "default", cmd.product];
89
89
  case "template.import":
90
90
  return ["template", "import", cmd.file, ...formatOpts(cmd.opts)];
91
+ case "template.refresh":
92
+ return ["template", "refresh", cmd.name];
91
93
  case "template.remove":
92
94
  return ["template", "remove", cmd.name];
93
95
  case "mcp":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-commands",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {