Added Create and Delete CLI Commands
[ealt-edge.git] / ocd / cli / ealt / cmd / applcmpkg / terminate.go
index bc1619f..20c87b9 100644 (file)
@@ -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
 }