github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/cf/commands/application/applicationfakes/fake_app_displayer.go (about)

     1  package applicationfakes
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/cf/commandregistry"
     5  	"code.cloudfoundry.org/cli/cf/flags"
     6  	"code.cloudfoundry.org/cli/cf/models"
     7  	"code.cloudfoundry.org/cli/cf/requirements"
     8  )
     9  
    10  type FakeAppDisplayer struct {
    11  	AppToDisplay models.Application
    12  	OrgName      string
    13  	SpaceName    string
    14  }
    15  
    16  func (displayer *FakeAppDisplayer) ShowApp(app models.Application, orgName, spaceName string) error {
    17  	displayer.AppToDisplay = app
    18  	return nil
    19  }
    20  
    21  func (displayer *FakeAppDisplayer) MetaData() commandregistry.CommandMetadata {
    22  	return commandregistry.CommandMetadata{Name: "app"}
    23  }
    24  
    25  func (displayer *FakeAppDisplayer) SetDependency(_ commandregistry.Dependency, _ bool) commandregistry.Command {
    26  	return displayer
    27  }
    28  
    29  func (displayer *FakeAppDisplayer) Requirements(_ requirements.Factory, _ flags.FlagContext) ([]requirements.Requirement, error) {
    30  	return []requirements.Requirement{}, nil
    31  }
    32  
    33  func (displayer *FakeAppDisplayer) Execute(_ flags.FlagContext) error {
    34  	return nil
    35  }