@vizamodo/viza-cli 1.3.45 → 1.4.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/dist/bin/viza.js
CHANGED
|
@@ -37,7 +37,8 @@ program
|
|
|
37
37
|
.version(readCliVersion())
|
|
38
38
|
// Global Options
|
|
39
39
|
.option("--status", "Show status only (no execution)")
|
|
40
|
-
.option("--
|
|
40
|
+
.option("--keep-log", "Keep execution logs", false)
|
|
41
|
+
.option("--self-hosted", "Use self-hosted runner (viza-builder)", false);
|
|
41
42
|
program
|
|
42
43
|
.command("bootstrap")
|
|
43
44
|
.description("Bootstrap configuration")
|
|
@@ -51,7 +52,6 @@ program
|
|
|
51
52
|
.description("Login to AWS")
|
|
52
53
|
.option("--prod", "Use production environment")
|
|
53
54
|
.option("--dev", "Use development environment")
|
|
54
|
-
.option("--keep-log", "Keep execution logs", false)
|
|
55
55
|
.action(async (_options, command) => {
|
|
56
56
|
const fullOpts = getResolvedOptions(command);
|
|
57
57
|
await loginAwsCommand(fullOpts);
|
|
@@ -49,7 +49,7 @@ export async function loginAwsCommand(options) {
|
|
|
49
49
|
infraKey: "aws",
|
|
50
50
|
targetEnv: env,
|
|
51
51
|
allowedTeams,
|
|
52
|
-
|
|
52
|
+
selfHosted: options.selfHosted === true,
|
|
53
53
|
keepLog: options.keepLog === true,
|
|
54
54
|
flowGates: {
|
|
55
55
|
secrets: false,
|
|
@@ -25,7 +25,7 @@ async function dispatchIntent(input, mode = "dispatch") {
|
|
|
25
25
|
commandType: input.commandType,
|
|
26
26
|
infraKey: input.infraKey,
|
|
27
27
|
payload: input.payload,
|
|
28
|
-
runnerLabel: input.
|
|
28
|
+
runnerLabel: input.selfHosted ? "selfhosted" : "native",
|
|
29
29
|
keepLog: input.keepLog,
|
|
30
30
|
flowGates: input.flowGates,
|
|
31
31
|
};
|
|
@@ -51,6 +51,7 @@ export async function dispatchIntentAndWait(input, opts = {}) {
|
|
|
51
51
|
cliVersion,
|
|
52
52
|
};
|
|
53
53
|
showDispatchBanner(input, meta);
|
|
54
|
+
console.log('input', input);
|
|
54
55
|
const handle = await dispatchIntent(input, mode);
|
|
55
56
|
const spinner = startSpinner("Waiting for dispatch session");
|
|
56
57
|
// Fast update check (kept before wait/log so the hint is not lost)
|
package/dist/src/ui/banner.js
CHANGED