X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=cmd-sdks.go;h=e6ae1cf3d954f9f8b284ff3367983d71cc0199cc;hb=6f71a805b2f6f961761b5906a21d2a234b84aa4c;hp=af6c417173f52cb9e5716ab5adcfb579bb8b38a2;hpb=75416fe01aa98b53c57315a050fc58f0879a238d;p=src%2Fxds%2Fxds-cli.git diff --git a/cmd-sdks.go b/cmd-sdks.go index af6c417..e6ae1cf 100644 --- a/cmd-sdks.go +++ b/cmd-sdks.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( @@ -27,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", }, }, }, @@ -51,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", }, }, },