Added Get Operation and Bug Fixes
[ealt-edge.git] / ocd / cli / ealt / cmd / applcmpkg / delete.go
index 9e53156..2175ec1 100644 (file)
@@ -25,12 +25,11 @@ import (
 func NewApplcmDeleteCommand() *cobra.Command {
        var cmd = &cobra.Command{
                Use:   "delete",
-               Short: "Install Complete EALT Deployment Environment",
-               Long:  `Install Complete EALT Deployment Environment`,
+               Short: "Delete the application from the MEP Node.",
+               Long:  `Delete the application from the MEP Node.`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       applicationIdArg := cmd.Flag("appid")
-                       applicationId := applicationIdArg.Value.String()
-                       err := adapter.BuilderRequest(applicationId, "NewApplcmDeleteCommand")
+                       theFlags := []string{cmd.Flag("appid").Value.String()}
+                       err := adapter.BuilderRequest(theFlags, "NewApplcmDeleteCommand")
                        if err != nil {
                                return err
                        }
@@ -38,7 +37,7 @@ func NewApplcmDeleteCommand() *cobra.Command {
                },
        }
 
-       cmd.Flags().StringP("appid", "i", "", "Application Package ID to be deleted from MEP")
-
+       cmd.Flags().StringP("appid", "i", "", "Application Instance ID to be Deleted!!")
+       cmd.MarkFlagRequired("appid")
        return cmd
 }