github.com/cloudfoundry/cli@v7.1.0+incompatible/cf/commandregistry/fakecommand/fake_command_max_length_name.go (about)

     1  package fakecommand
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/cf/commandregistry"
     5  	"code.cloudfoundry.org/cli/cf/flags"
     6  	"code.cloudfoundry.org/cli/cf/requirements"
     7  )
     8  
     9  type FakeCommand3 struct {
    10  }
    11  
    12  func init() {
    13  	commandregistry.Register(FakeCommand3{})
    14  }
    15  
    16  func (cmd FakeCommand3) MetaData() commandregistry.CommandMetadata {
    17  	return commandregistry.CommandMetadata{
    18  		Name: "this-is-a-really-long-command-name-123123123123123123123",
    19  	}
    20  }
    21  
    22  func (cmd FakeCommand3) Requirements(_ requirements.Factory, _ flags.FlagContext) ([]requirements.Requirement, error) {
    23  	return []requirements.Requirement{}, nil
    24  }
    25  
    26  func (cmd FakeCommand3) SetDependency(deps commandregistry.Dependency, _ bool) commandregistry.Command {
    27  	return cmd
    28  }
    29  
    30  func (cmd FakeCommand3) Execute(c flags.FlagContext) error {
    31  	return nil
    32  }