Short: "To start the application instance on MEP Node",
Long: `To start 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, "NewApplcmStartCommand")
+ theFlags := []string{cmd.Flag("appid").Value.String(),
+ cmd.Flag("hostname").Value.String(),
+ cmd.Flag("hostip").Value.String()}
+ err := adapter.BuilderRequest(theFlags, "NewApplcmStartCommand")
if err != nil {
return err
}
},
}
cmd.Flags().StringP("appid", "i", "", "Application Instance ID to be started")
+ cmd.Flags().StringP("hostname", "n", "", "Host Name where the App has to be instantiated")
+ cmd.Flags().StringP("hostip", "o", "", "Host IP / MEP Node IP")
+ cmd.MarkFlagRequired("appid")
+ cmd.MarkFlagRequired("hostname")
+ cmd.MarkFlagRequired("hostip")
return cmd
}