X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-cli.git;a=blobdiff_plain;f=cmd-sdks.go;h=35b053e90bae7a0dc05a7cc8c740631014f10e53;hp=e4012e75faccdb2cafc9c2e301b684b806feaf1d;hb=5e7b2dec616b844dd881897727d0edceb90dfa85;hpb=35586adb40790f6b0b15c43d4bae86d29090736a diff --git a/cmd-sdks.go b/cmd-sdks.go index e4012e7..35b053e 100644 --- a/cmd-sdks.go +++ b/cmd-sdks.go @@ -142,7 +142,7 @@ func sdksList(ctx *cli.Context) error { } func sdksGet(ctx *cli.Context) error { - id := GetID(ctx) + id := GetID(ctx, "XDS_SDK_ID") if id == "" { return cli.NewExitError("id parameter or option must be set", 1) } @@ -226,7 +226,7 @@ func _sdksListGet(sdks *[]xaapiv1.SDK) error { } func sdksInstall(ctx *cli.Context) error { - id := GetID(ctx) + id := GetID(ctx, "XDS_SDK_ID") file := ctx.String("file") force := ctx.Bool("force") shortOut := ctx.Bool("short") @@ -326,7 +326,7 @@ func sdksInstall(ctx *cli.Context) error { } func sdksUnInstall(ctx *cli.Context) error { - id := GetID(ctx) + id := GetID(ctx, "XDS_SDK_ID") if id == "" { return cli.NewExitError("id parameter or option must be set", 1) } @@ -350,7 +350,7 @@ func sdksUnInstall(ctx *cli.Context) error { } func sdksAbort(ctx *cli.Context) error { - id := GetID(ctx) + id := GetID(ctx, "XDS_SDK_ID") if id == "" { return cli.NewExitError("id parameter or option must be set", 1) }