github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/cf/command_registry/fake_command/fake_command2.go (about)

     1  package fake_command
     2  
     3  import (
     4  	"github.com/cloudfoundry/cli/cf/command_registry"
     5  	"github.com/cloudfoundry/cli/cf/requirements"
     6  	"github.com/cloudfoundry/cli/flags"
     7  )
     8  
     9  type FakeCommand2 struct {
    10  	Data string
    11  }
    12  
    13  func (cmd FakeCommand2) MetaData() command_registry.CommandMetadata {
    14  	return command_registry.CommandMetadata{
    15  		Name:        "fake-command2",
    16  		ShortName:   "fc2",
    17  		Description: "Description for fake-command2",
    18  		Usage:       "Usage of fake-command2",
    19  	}
    20  }
    21  
    22  func (cmd FakeCommand2) Requirements(_ requirements.Factory, _ flags.FlagContext) (reqs []requirements.Requirement, err error) {
    23  	return
    24  }
    25  
    26  func (cmd FakeCommand2) SetDependency(deps command_registry.Dependency, _ bool) command_registry.Command {
    27  	return cmd
    28  }
    29  
    30  func (cmd FakeCommand2) Execute(c flags.FlagContext) {
    31  }