@norskvideo/ctl-commands 0.1.9 → 0.1.10
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 +15 -0
- package/commands.js +1 -0
- package/package.json +1 -1
package/commands.d.ts
CHANGED
|
@@ -90,6 +90,16 @@ export interface SideloadFetchOpts {
|
|
|
90
90
|
export interface TemplateImportOpts {
|
|
91
91
|
name: string;
|
|
92
92
|
}
|
|
93
|
+
export interface TemplateBuildOpts {
|
|
94
|
+
/** Registered product to build from; its `/api/product-template` renders the tar. */
|
|
95
|
+
product: string;
|
|
96
|
+
/** Path to a JSON file of the product's template inputs, forwarded verbatim. */
|
|
97
|
+
input: string;
|
|
98
|
+
/** Overwrite an existing template of this name instead of failing. What makes
|
|
99
|
+
* a re-run of a bring-up script idempotent without removing the only copy
|
|
100
|
+
* first. Refused while an instance references the template. */
|
|
101
|
+
replace?: boolean;
|
|
102
|
+
}
|
|
93
103
|
export interface InstanceLaunchTemplateOpts {
|
|
94
104
|
template: string;
|
|
95
105
|
param?: string[];
|
|
@@ -251,6 +261,11 @@ export declare const commands: {
|
|
|
251
261
|
readonly file: string;
|
|
252
262
|
readonly opts: TemplateImportOpts;
|
|
253
263
|
}>;
|
|
264
|
+
readonly build: LeafCmd<(name: string, opts: TemplateBuildOpts) => {
|
|
265
|
+
readonly kind: "template.build";
|
|
266
|
+
readonly name: string;
|
|
267
|
+
readonly opts: TemplateBuildOpts;
|
|
268
|
+
}>;
|
|
254
269
|
readonly refresh: LeafCmd<(name: string) => {
|
|
255
270
|
readonly kind: "template.refresh";
|
|
256
271
|
readonly name: string;
|
package/commands.js
CHANGED
|
@@ -83,6 +83,7 @@ export const commands = {
|
|
|
83
83
|
show: leaf("template.show", (name) => ({ kind: "template.show", name }), "name"),
|
|
84
84
|
default: leaf("template.default", (product) => ({ kind: "template.default", product }), "product"),
|
|
85
85
|
import: leaf("template.import", (file, opts) => ({ kind: "template.import", file, opts }), "file"),
|
|
86
|
+
build: leaf("template.build", (name, opts) => ({ kind: "template.build", name, opts }), "name"),
|
|
86
87
|
refresh: leaf("template.refresh", (name) => ({ kind: "template.refresh", name }), "name"),
|
|
87
88
|
remove: leaf("template.remove", (name) => ({ kind: "template.remove", name }), "name"),
|
|
88
89
|
},
|