X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Fcli%2Fealt%2Fcmd%2Fapplcmpkg%2Fterminate.go;h=20c87b9e7b1e164fb67e6699249133ae57c7b4c6;hb=5d07bea8b04559a4e93774702cca1a09fc755323;hp=bc1619fb77efd9d383bc24361ad19ee723285e1b;hpb=5011a34d8324f1458ead3734992058c60d7af761;p=ealt-edge.git diff --git a/ocd/cli/ealt/cmd/applcmpkg/terminate.go b/ocd/cli/ealt/cmd/applcmpkg/terminate.go index bc1619f..20c87b9 100644 --- a/ocd/cli/ealt/cmd/applcmpkg/terminate.go +++ b/ocd/cli/ealt/cmd/applcmpkg/terminate.go @@ -28,9 +28,9 @@ func NewApplcmTerminateCommand() *cobra.Command { Short: "To kill the application ", Long: `Install Complete EALT Deployment Environment`, RunE: func(cmd *cobra.Command, args []string) error { - appIdArg := cmd.Flag("appid") - applicationId := appIdArg.Value.String() - err := adapter.BuilderRequest(applicationId, "NewApplcmTerminateCommand") + var theFlags []string + theFlags[0] = cmd.Flag("appid").Value.String() + err := adapter.BuilderRequest(theFlags, "NewApplcmTerminateCommand") if err != nil { return err } @@ -39,6 +39,7 @@ func NewApplcmTerminateCommand() *cobra.Command { } cmd.Flags().StringP("appid", "i", "", "Application Instance ID to be terminated") + cmd.MarkFlagRequired("appid") return cmd }