github.com/sleungcy-sap/cli@v7.1.0+incompatible/command/shared_actor.go (about)

     1  package command
     2  
     3  //go:generate counterfeiter . SharedActor
     4  
     5  type SharedActor interface {
     6  	IsLoggedIn() bool
     7  	IsSpaceTargeted() bool
     8  	IsOrgTargeted() bool
     9  
    10  	CheckTarget(targetedOrganizationRequired bool, targetedSpaceRequired bool) error
    11  	RequireCurrentUser() (string, error)
    12  	RequireTargetedOrg() (string, error)
    13  }