summaryrefslogtreecommitdiffstats
path: root/cmd-projects.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-04 11:21:44 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-04 11:21:44 +0100
commitdb05ee6a19f75e6fabaf8e6af09926edae554bc2 (patch)
tree30ce3e0acb71772ba12e8cab980af4a51de20444 /cmd-projects.go
parentf95aa5f0e39b85198655e8399c161fc5e6cd8a59 (diff)
Added XDS_SDK_ID and XDS_PROJECT_ID env variables support.
Diffstat (limited to 'cmd-projects.go')
-rw-r--r--cmd-projects.go15
1 files changed, 9 insertions, 6 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",
},
},
},