@vizamodo/viza-cli 1.2.45 → 1.2.48

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.
@@ -8,6 +8,7 @@ export function devLoginAwsCommand(ctx) {
8
8
  .option("--status", "Check status only (do not dispatch new run)")
9
9
  .action(async (opts) => {
10
10
  await awsLogin({
11
+ intent: "hub-dev",
11
12
  targetTeam: ctx.targetTeam,
12
13
  mode: opts.status ? "status" : "dispatch",
13
14
  });
@@ -18,6 +19,7 @@ export function devLoginAwsCommand(ctx) {
18
19
  .option("--status", "Check status only (do not dispatch new run)")
19
20
  .action(async (opts) => {
20
21
  await awsCreateSsoUrl({
22
+ intent: "hub-dev",
21
23
  targetTeam: ctx.targetTeam,
22
24
  mode: opts.status ? "status" : "dispatch",
23
25
  });
@@ -0,0 +1,5 @@
1
+ export const prodCommand = {
2
+ name: "prod",
3
+ description: "production commands",
4
+ children: []
5
+ };
@@ -7,7 +7,7 @@ export async function awsLogin(ctx) {
7
7
  type: "sso",
8
8
  };
9
9
  await dispatchIntentAndWait({
10
- intent: "hub",
10
+ intent: ctx.intent ?? "hub-dev",
11
11
  eventType: "viza.aws.login",
12
12
  targetTeam: ctx.targetTeam,
13
13
  runnerLabel: "native",
@@ -20,7 +20,7 @@ export async function awsCreateSsoUrl(ctx) {
20
20
  provider: "aws",
21
21
  };
22
22
  await dispatchIntentAndWait({
23
- intent: "hub",
23
+ intent: ctx.intent ?? "hub-dev",
24
24
  eventType: "viza.aws.sso-url",
25
25
  targetTeam: ctx.targetTeam,
26
26
  runnerLabel: "native",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/viza-cli",
3
- "version": "1.2.45",
3
+ "version": "1.2.48",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {
@@ -1,5 +0,0 @@
1
- export const publishCommand = {
2
- name: "publish",
3
- description: "publish commands",
4
- children: []
5
- };