genny/newapp/web/options.go
func (opts *Options) Validate() error {
	if opts.Options == nil {
		opts.Options = &core.Options{}
	}

	if err := opts.Options.Validate(); err != nil {
		return err
	}

	if opts.Docker != nil {
		if opts.Docker.App.IsZero() {
			opts.Docker.App = opts.App
		}
		if err := opts.Docker.Validate(); err != nil {
			return err
		}
	}

	if opts.Webpack != nil {
		if opts.Webpack.App.IsZero() {
			opts.Webpack.App = opts.App
		}
		if err := opts.Webpack.Validate(); err != nil {
			return err
		}
	}

	if opts.Standard != nil && opts.Webpack != nil {
		return errors.New("you can not use both webpack and standard generators")
	}

	return nil
}
func (opts *Options) Validate() error {
	if opts.Options == nil {
		opts.Options = &core.Options{}
	}

	if err := opts.Options.Validate(); err != nil {
		return err
	}

	if opts.Docker != nil {
		if opts.Docker.App.IsZero() {
			opts.Docker.App = opts.App
		}
		if err := opts.Docker.Validate(); err != nil {
			return err
		}
	}

	if opts.Webpack != nil {
		if opts.Webpack.App.IsZero() {
			opts.Webpack.App = opts.App
		}
		if err := opts.Webpack.Validate(); err != nil {
			return err
		}
	}

	if opts.Standard != nil && opts.Webpack != nil {
		return errors.New("you can not use both webpack and standard generators")
	}

	return nil
}
// Validate that options are usuable