func (v *Value) commandValueOrDefault() (string, error) {
	if v.Command != "" {
		out, err := exec.Command("sh", "-c", v.Command).Output() // nolint: gosec
		if err != nil {
			return "", err
		}

		return strings.TrimSpace(string(out)), nil
	}

	return v.Value, nil
}
// commandValueOrDefault validates a content definition, then gets the value.
commandValueOrDefault validates a content definition, then gets the value.
// commandValueOrDefault validates a content definition then gets the value .
func (v *Value) commandValueOrDefault() (string, error) {
	if v.Command != "" {
		out, err := exec.Command("sh", "-c", v.Command).Output() 
		if err != nil {
			return "", err
		}
		return strings.TrimSpace(string(out)), nil
	}
	return v.Value, nil
}
func ( v * Value ) commandValueOrDefault ( ) ( string , error ) { if v . Command != " " { out , err := exec . Command ( " " , " " , v . Command ) . Output ( ) if err != nil { return " " , err } return strings . TrimSpace ( string ( out ) ) , nil } return v . Value , nil }
commandValueOrDefault validates a content definition, then gets the value.
commandValueOrDefault validates a content definition then gets the value .
// nolint: gosec