(deps commandregistry.Dependency, pluginCall bool)
| 65 | } |
| 66 | |
| 67 | func (cmd *UnsetSpaceRole) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command { |
| 68 | cmd.ui = deps.UI |
| 69 | cmd.config = deps.Config |
| 70 | cmd.spaceRepo = deps.RepoLocator.GetSpaceRepository() |
| 71 | cmd.userRepo = deps.RepoLocator.GetUserRepository() |
| 72 | cmd.flagRepo = deps.RepoLocator.GetFeatureFlagRepository() |
| 73 | return cmd |
| 74 | } |
| 75 | |
| 76 | func (cmd *UnsetSpaceRole) Execute(c flags.FlagContext) error { |
| 77 | spaceName := c.Args()[2] |
nothing calls this directly
no test coverage detected