update info of infra/README.md
[ealt-edge.git] / ocd / cli / ealt / cmd / appm / delete.go
index 8cca0da..e64e949 100644 (file)
@@ -25,12 +25,11 @@ import (
 func NewAppDeleteCommand() *cobra.Command {
        var cmd = &cobra.Command{
                Use:   "delete",
-               Short: "Install Complete EALT Deployment Environment",
-               Long:  `Install Complete EALT Deployment Environment`,
+               Short: "Remove the Application Package from the MECM Host.",
+               Long:  `Remove the Application Package from the MECM Host.`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       pkgidArg := cmd.Flag("pkgid")
-                       packageId := pkgidArg.Value.String()
-                       err := adapter.BuilderRequest(packageId, "NewAppDeleteCommand")
+                       theFlags := []string{cmd.Flag("packageid").Value.String()}
+                       err := adapter.BuilderRequest(theFlags, "NewAppDeleteCommand")
                        if err != nil {
                                return err
                        }
@@ -38,7 +37,8 @@ func NewAppDeleteCommand() *cobra.Command {
                },
        }
 
-       cmd.Flags().StringP("pkgid", "i", "", "Application Package ID to be deleted from MEP")
+       cmd.Flags().StringP("packageid", "i", "", "Application Package ID to be deleted from MEP")
+       cmd.MarkFlagRequired("packageid")
 
        return cmd
 }