// NewCmdService implements the odo service command
NewCmdService implements the odo service command
// NewCmdService implements the odo service command
func NewCmdService(name, fullName string) *cobra.Command {
	serviceCreateCmd := NewCmdServiceCreate(createRecommendedCommandName, fullName+" "+createRecommendedCommandName)
	serviceListCmd := NewCmdServiceList(listRecommendedCommandName, fullName+" "+listRecommendedCommandName)
	serviceDeleteCmd := NewCmdServiceDelete(deleteRecommendedCommandName, fullName+" "+deleteRecommendedCommandName)
	serviceCmd := &cobra.Command{
		Use:   name,
		Short: "Perform service catalog operations",
		Long:  serviceLongDesc,
		Example: fmt.Sprintf("%s\n%s\n%s",
			serviceCreateCmd.Example,
			serviceDeleteCmd.Example,
			serviceListCmd.Example),
		Args: cobra.RangeArgs(1, 3),
	}
	serviceCmd.Annotations = map[string]string{"command": "other"}
	serviceCmd.SetUsageTemplate(util.CmdUsageTemplate)
	serviceCmd.AddCommand(serviceCreateCmd, serviceDeleteCmd, serviceListCmd)
	return serviceCmd
}
func NewCmdService ( name , fullName string ) * cobra . Command { serviceCreateCmd := NewCmdServiceCreate ( createRecommendedCommandName , fullName + " " + createRecommendedCommandName ) serviceListCmd := NewCmdServiceList ( listRecommendedCommandName , fullName + " " + listRecommendedCommandName ) serviceDeleteCmd := NewCmdServiceDelete ( deleteRecommendedCommandName , fullName + " " + deleteRecommendedCommandName ) serviceCmd := & cobra . Command { Use : name , Short : " " , Long : serviceLongDesc , Example : fmt . Sprintf ( " \n \n " , serviceCreateCmd . Example , serviceDeleteCmd . Example , serviceListCmd . Example ) , Args : cobra . RangeArgs ( 1 , 3 ) , } serviceCmd . Annotations = map [ string ] string { " " : " " } serviceCmd . SetUsageTemplate ( util . CmdUsageTemplate ) serviceCmd . AddCommand ( serviceCreateCmd , serviceDeleteCmd , serviceListCmd ) return serviceCmd }
NewCmdService implements the odo service command
NewCmdService implements the odo service command
// Add a defined annotation in order to appear in the help menu