// Validate returns an error if the user inputs are invalid.
Validate returns an error if the user inputs are invalid.
// Validate returns an error if the user inputs are invalid .
func (o *deleteSvcOpts) Validate() error {
	if o.appName == "" {
		return errNoAppInWorkspace
	}
	if o.name != "" {
		if _, err := o.store.GetService(o.appName, o.name); err != nil {
			return err
		}
	}
	if o.envName != "" {
		return o.validateEnvName()
	}
	return nil
}
func ( o * deleteSvcOpts ) Validate ( ) error { if o . appName == " " { return errNoAppInWorkspace } if o . name != " " { if _ , err := o . store . GetService ( o . appName , o . name ) ; err != nil { return err } } if o . envName != " " { return o . validateEnvName ( ) } return nil }
Validate returns an error if the user inputs are invalid.
Validate returns an error if the user inputs are invalid .