summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-projects.go15
-rw-r--r--cmd-sdks.go10
2 files changed, 15 insertions, 10 deletions
diff --git a/cmd-projects.go b/cmd-projects.go
index 13a7126..6e7241a 100644
--- a/cmd-projects.go
+++ b/cmd-projects.go
@@ -63,8 +63,9 @@ func initCmdProjects(cmdDef *[]cli.Command) {
Action: projectsGet,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "id",
- Usage: "project id",
+ Name: "id",
+ Usage: "project id",
+ EnvVar: "XDS_PROJECT_ID",
},
},
},
@@ -87,8 +88,9 @@ func initCmdProjects(cmdDef *[]cli.Command) {
Action: projectsRemove,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "id",
- Usage: "project id",
+ Name: "id",
+ Usage: "project id",
+ EnvVar: "XDS_PROJECT_ID",
},
},
},
@@ -99,8 +101,9 @@ func initCmdProjects(cmdDef *[]cli.Command) {
Action: projectsSync,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "id",
- Usage: "project id",
+ Name: "id",
+ Usage: "project id",
+ EnvVar: "XDS_PROJECT_ID",
},
},
},
diff --git a/cmd-sdks.go b/cmd-sdks.go
index 853e847..e6ae1cf 100644
--- a/cmd-sdks.go
+++ b/cmd-sdks.go
@@ -45,8 +45,9 @@ func initCmdSdks(cmdDef *[]cli.Command) {
Action: sdksGet,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "id",
- Usage: "sdk id",
+ Name: "id",
+ Usage: "sdk id",
+ EnvVar: "XDS_SDK_ID",
},
},
},
@@ -69,8 +70,9 @@ func initCmdSdks(cmdDef *[]cli.Command) {
Action: sdksRemove,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "id",
- Usage: "sdk id",
+ Name: "id",
+ Usage: "sdk id",
+ EnvVar: "XDS_SDK_ID",
},
},
},