MCPcopy Create free account
hub / github.com/cloudfoundry/cli / SetDependency

Method SetDependency

cf/commands/ssh_code.go:60–67  ·  view source on GitHub ↗
(deps commandregistry.Dependency, _ bool)

Source from the content-addressed store, hash-verified

58}
59
60func (cmd *OneTimeSSHCode) SetDependency(deps commandregistry.Dependency, _ bool) commandregistry.Command {
61 cmd.ui = deps.UI
62 cmd.config = deps.Config
63 cmd.authRepo = deps.RepoLocator.GetAuthenticationRepository()
64 cmd.endpointRepo = deps.RepoLocator.GetEndpointRepository()
65
66 return cmd
67}
68
69func (cmd *OneTimeSSHCode) Execute(c flags.FlagContext) error {
70 code, err := cmd.Get()

Callers

nothing calls this directly

Calls 2

GetEndpointRepositoryMethod · 0.80

Tested by

no test coverage detected