github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/actionerror/invalid_command_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // InvalidCommandError represents an error that happens when help is called
     6  // with an invalid command.
     7  type InvalidCommandError struct {
     8  	CommandName string
     9  }
    10  
    11  func (err InvalidCommandError) Error() string {
    12  	return fmt.Sprintf("'%s' is not a registered command. See 'cf help -a'", err.CommandName)
    13  }