genny/actions/options.go
func (opts *Options) Validate() error {
	if len(opts.Name) == 0 {
		return errors.New("you must provide a name")
	}

	if len(opts.Actions) == 0 {
		return errors.New("you must provide at least one action name")
	}

	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	if len(opts.Method) == 0 {
		opts.Method = "GET"
	}
	return nil
}
func (opts *Options) Validate() error {
	if len(opts.Name) == 0 {
		return errors.New("you must provide a name")
	}

	if len(opts.Actions) == 0 {
		return errors.New("you must provide at least one action name")
	}

	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	if len(opts.Method) == 0 {
		opts.Method = "GET"
	}
	return nil
}
func ( opts * Options ) Validate ( ) error { if len ( opts . Name ) == 0 { return errors . New ( " " ) } if len ( opts . Actions ) == 0 { return errors . New ( " " ) } if opts . App . IsZero ( ) { opts . App = meta . New ( " " ) } if len ( opts . Method ) == 0 { opts . Method = " " } return nil }
// Validate that options are usuable
Validate that options are usuable