X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Fcli%2Fealt%2Fcmd%2Fapplcmpkg%2Fdelete.go;h=2175ec14da31916cd1213efb5339df3ec74b94f7;hb=8695c40afdce738a635e201d9e3f32d52f8d720f;hp=9e53156c1b2f5c6074616ad254b83d866edca9ae;hpb=440ecbc2b907e160a5eef66b04329a06e1aae2c6;p=ealt-edge.git diff --git a/ocd/cli/ealt/cmd/applcmpkg/delete.go b/ocd/cli/ealt/cmd/applcmpkg/delete.go index 9e53156..2175ec1 100644 --- a/ocd/cli/ealt/cmd/applcmpkg/delete.go +++ b/ocd/cli/ealt/cmd/applcmpkg/delete.go @@ -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 }