github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/required_name_for_push_error.go (about) 1 package translatableerror 2 3 type RequiredNameForPushError struct { 4 } 5 6 func (RequiredNameForPushError) DisplayUsage() {} 7 8 func (RequiredNameForPushError) Error() string { 9 return "Incorrect usage: The push command requires an app name. The app name can be supplied as an argument or with a manifest.yml file." 10 } 11 12 func (e RequiredNameForPushError) Translate(translate func(string, ...interface{}) string) string { 13 return translate(e.Error()) 14 }