github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/app_name_or_manifest_required_error.go (about)

     1  package translatableerror
     2  
     3  // AppNameOrManifestRequiredError represent an error caused by using two
     4  // command line arguments that cannot be used together.
     5  type AppNameOrManifestRequiredError struct {
     6  	Args []string
     7  }
     8  
     9  func (AppNameOrManifestRequiredError) DisplayUsage() {}
    10  
    11  func (AppNameOrManifestRequiredError) Error() string {
    12  	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."
    13  }
    14  
    15  func (e AppNameOrManifestRequiredError) Translate(translate func(string, ...interface{}) string) string {
    16  	return translate(e.Error())
    17  }