func (cl *CommandList) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var commandSlice []Command
	sliceCandidate := marshal.UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&commandSlice) },
		Assign:    func() { *cl = commandSlice },
	}

	var commandItem Command
	itemCandidate := marshal.UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&commandItem) },
		Assign:    func() { *cl = CommandList{commandItem} },
	}

	return marshal.UnmarshalOneOf(sliceCandidate, itemCandidate)
}
// UnmarshalYAML allows single items to be used as lists.
UnmarshalYAML allows single items to be used as lists.
// UnmarshalYAML allows single items to be used as lists .
func (cl *CommandList) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var commandSlice []Command
	sliceCandidate := marshal.UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&commandSlice) },
		Assign:    func() { *cl = commandSlice },
	}
	var commandItem Command
	itemCandidate := marshal.UnmarshalCandidate{
		Unmarshal: func() error { return unmarshal(&commandItem) },
		Assign:    func() { *cl = CommandList{commandItem} },
	}
	return marshal.UnmarshalOneOf(sliceCandidate, itemCandidate)
}
func ( cl * CommandList ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var commandSlice [ ] Command sliceCandidate := marshal . UnmarshalCandidate { Unmarshal : func ( ) error { return unmarshal ( & commandSlice ) } , Assign : func ( ) { * cl = commandSlice } , } var commandItem Command itemCandidate := marshal . UnmarshalCandidate { Unmarshal : func ( ) error { return unmarshal ( & commandItem ) } , Assign : func ( ) { * cl = CommandList { commandItem } } , } return marshal . UnmarshalOneOf ( sliceCandidate , itemCandidate ) }
UnmarshalYAML allows single items to be used as lists.
UnmarshalYAML allows single items to be used as lists .