summaryrefslogtreecommitdiffstats
path: root/cmd-sdks.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-sdks.go
parentf95aa5f0e39b85198655e8399c161fc5e6cd8a59 (diff)
Added XDS_SDK_ID and XDS_PROJECT_ID env variables support.
Diffstat (limited to 'cmd-sdks.go')
-rw-r--r--cmd-sdks.go10
1 files changed, 6 insertions, 4 deletions
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",
},
},
},