viza 1.8.13 → 1.8.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getEnv } from "../../../context/env.js";
|
|
2
2
|
import { RUNTIME_HUB_INTENT } from "../../../context/hubIntent.js";
|
|
3
3
|
import { dispatchIntentAndWait } from "../../../core/dispatch.js";
|
|
4
4
|
import { showSsoLinkMenu } from "../../../ui/sso/awsLoginMenu.js";
|
|
@@ -15,7 +15,7 @@ import { policy } from "./policy.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export async function loginAwsCommand(options) {
|
|
17
17
|
// 1) Resolve environment
|
|
18
|
-
const env =
|
|
18
|
+
const env = getEnv();
|
|
19
19
|
const intent = RUNTIME_HUB_INTENT;
|
|
20
20
|
// Resolve allowed teams
|
|
21
21
|
// - Dispatch mode: restrict by targetEnv
|
|
@@ -6,8 +6,6 @@ export function registerLoginAwsCommand(program) {
|
|
|
6
6
|
.description("Login to cloud providers")
|
|
7
7
|
.command("aws")
|
|
8
8
|
.description("Login to AWS")
|
|
9
|
-
.option("--prod", "Use production environment")
|
|
10
|
-
.option("--dev", "Use development environment")
|
|
11
9
|
.option("--ssm", "Open AWS Systems Manager Parameter Store after login")
|
|
12
10
|
.action(async (_opts, command) => {
|
|
13
11
|
const fullOpts = getResolvedOptions(command);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
export function resolveBinaryContext() {
|
|
3
|
-
console.error("DEBUG CLI CONTEXT", {
|
|
4
|
-
argv0: process.argv0,
|
|
5
|
-
argv: process.argv,
|
|
6
|
-
execPath: process.execPath
|
|
7
|
-
});
|
|
8
3
|
const bin = path.basename(process.argv[1]);
|
|
9
|
-
const env = bin.startsWith("
|
|
4
|
+
const env = bin.startsWith("modo") ? "prod" : "dev";
|
|
10
5
|
let runner = "hub";
|
|
11
6
|
if (bin.includes("builder"))
|
|
12
7
|
runner = "builder";
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viza",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Viza unified command line interface",
|
|
6
6
|
"bin": {
|
|
7
7
|
"viza": "dist/bin/viza.js",
|
|
8
8
|
"viza-builder": "dist/bin/viza.js",
|
|
9
9
|
"viza-deployer": "dist/bin/viza.js",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"modo": "dist/bin/viza.js",
|
|
11
|
+
"modo-builder": "dist/bin/viza.js",
|
|
12
|
+
"modo-deployer": "dist/bin/viza.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|