Added Get Operation and Bug Fixes
[ealt-edge.git] / ocd / cli / ealt / cmd / applcmpkg / terminate.go
index bc1619f..ab78317 100644 (file)
@@ -25,20 +25,18 @@ import (
 func NewApplcmTerminateCommand() *cobra.Command {
        var cmd = &cobra.Command{
                Use:   "kill",
-               Short: "To kill the application ",
-               Long:  `Install Complete EALT Deployment Environment`,
+               Short: "To terminate the application instance.",
+               Long:  `To terminate the application instance  on MEP Node.`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       appIdArg := cmd.Flag("appid")
-                       applicationId := appIdArg.Value.String()
-                       err := adapter.BuilderRequest(applicationId, "NewApplcmTerminateCommand")
+                       theFlags := []string{cmd.Flag("appid").Value.String()}
+                       err := adapter.BuilderRequest(theFlags, "NewApplcmTerminateCommand")
                        if err != nil {
                                return err
                        }
                        return nil
                },
        }
-
        cmd.Flags().StringP("appid", "i", "", "Application Instance ID to be terminated")
-
+       cmd.MarkFlagRequired("appid")
        return cmd
 }