@norskvideo/ctl-commands 0.1.15 → 0.1.16
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 +18 -0
- package/commands.js +1 -0
- package/package.json +1 -1
package/commands.d.ts
CHANGED
|
@@ -105,6 +105,19 @@ export interface TemplateBuildOpts {
|
|
|
105
105
|
* first. Refused while an instance references the template. */
|
|
106
106
|
replace?: boolean;
|
|
107
107
|
}
|
|
108
|
+
/** `instance export-template <name>`: a stored product template rendered to a
|
|
109
|
+
* portable compose bundle without launching — with HANDOVER.md, the
|
|
110
|
+
* deployment document a turnkey's customer receives. */
|
|
111
|
+
export interface InstanceExportTemplateOpts {
|
|
112
|
+
/** Absolute path on the daemon's host, created/cleared to hold the bundle. */
|
|
113
|
+
to: string;
|
|
114
|
+
includeLicense?: boolean;
|
|
115
|
+
/** `NAME=value` product-template parameter overrides. */
|
|
116
|
+
param?: string[];
|
|
117
|
+
projectName?: string;
|
|
118
|
+
/** `compose` (default) prints the export result; `handover` prints HANDOVER.md. */
|
|
119
|
+
format?: "compose" | "handover";
|
|
120
|
+
}
|
|
108
121
|
export interface InstanceLaunchTemplateOpts {
|
|
109
122
|
template: string;
|
|
110
123
|
param?: string[];
|
|
@@ -198,6 +211,11 @@ export declare const commands: {
|
|
|
198
211
|
readonly id: string;
|
|
199
212
|
readonly opts: InstanceLaunchTemplateOpts;
|
|
200
213
|
}>;
|
|
214
|
+
readonly exportTemplate: LeafCmd<(name: string, opts: InstanceExportTemplateOpts) => {
|
|
215
|
+
readonly kind: "instance.exportTemplate";
|
|
216
|
+
readonly name: string;
|
|
217
|
+
readonly opts: InstanceExportTemplateOpts;
|
|
218
|
+
}>;
|
|
201
219
|
};
|
|
202
220
|
readonly orphanedDirs: {
|
|
203
221
|
readonly list: LeafCmd<(opts?: OrphanListOpts) => {
|
package/commands.js
CHANGED
|
@@ -64,6 +64,7 @@ export const commands = {
|
|
|
64
64
|
list: leaf("instance.list", () => ({ kind: "instance.list" })),
|
|
65
65
|
exists: leaf("instance.exists", (id) => ({ kind: "instance.exists", id }), "id"),
|
|
66
66
|
launchTemplate: leaf("instance.launchTemplate", (id, opts) => ({ kind: "instance.launchTemplate", id, opts }), "id"),
|
|
67
|
+
exportTemplate: leaf("instance.exportTemplate", (name, opts) => ({ kind: "instance.exportTemplate", name, opts }), "name"),
|
|
67
68
|
},
|
|
68
69
|
orphanedDirs: {
|
|
69
70
|
list: leaf("orphaned-dirs.list", (opts = {}) => ({ kind: "orphaned-dirs.list", opts })),
|