(f factory.Factory, cmd *cobra.Command, client *client.Client)
| 45 | } |
| 46 | |
| 47 | func newDependencies(f factory.Factory, cmd *cobra.Command, client *client.Client) *Dependencies { |
| 48 | return &Dependencies{ |
| 49 | Ask: f.Ask, |
| 50 | CmdPath: cmd.CommandPath(), |
| 51 | Out: cmd.OutOrStdout(), |
| 52 | Client: client, |
| 53 | Host: f.GetCurrentHost(), |
| 54 | NoPrompt: !f.IsPromptEnabled(), |
| 55 | Space: f.GetCurrentSpace(), |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func (d *Dependencies) GetSpaceNameOrEmpty() string { |
| 60 | if d.Space != nil { |
no test coverage detected