(deps commandregistry.Dependency, pluginCall bool)
| 49 | } |
| 50 | |
| 51 | func (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 | |
| 58 | func (cmd *CreateUser) Execute(c flags.FlagContext) error { |
| 59 | username := c.Args()[0] |
nothing calls this directly
no test coverage detected