github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/commandregistry/fakecommand/fake_command_max_length_name.go (about)

     1  package fakecommand
     2  
     3  import (
     4  	"github.com/liamawhite/cli-with-i18n/cf/commandregistry"
     5  	"github.com/liamawhite/cli-with-i18n/cf/flags"
     6  	"github.com/liamawhite/cli-with-i18n/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  }