func (opts *Options) Validate() error {
	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	var found bool
	for _, a := range Available {
		if opts.Provider == a {
			found = true
			break
		}
	}
	if !found {
		return fmt.Errorf("unknown provider %q expecting one of %s", opts.Provider, strings.Join(Available, ", "))
	}
	return nil
}
func (opts *Options) Validate() error {
	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	var found bool
	for _, a := range Available {
		if opts.Provider == a {
			found = true
			break
		}
	}
	if !found {
		return fmt.Errorf("unknown provider %q expecting one of %s", opts.Provider, strings.Join(Available, ", "))
	}
	return nil
}
func ( opts * Options ) Validate ( ) error { if opts . App . IsZero ( ) { opts . App = meta . New ( " " ) } var found bool for _ , a := range Available { if opts . Provider == a { found = true break } } if ! found { return fmt . Errorf ( " " , opts . Provider , strings . Join ( Available , " " ) ) } return nil }
// Validate that options are usuable
Validate that options are usuable