MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SetDependency

Method SetDependency

cf/commands/user/create_user.go:51–56  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

49}
50
51func (cmd *CreateUser) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
52 cmd.ui = deps.UI
53 cmd.config = deps.Config
54 cmd.userRepo = deps.RepoLocator.GetUserRepository()
55 return cmd
56}
57
58func (cmd *CreateUser) Execute(c flags.FlagContext) error {
59 username := c.Args()[0]

Callers

nothing calls this directly

Calls 1

GetUserRepositoryMethod · 0.80

Tested by

no test coverage detected