(flags *CreateFlags, dependencies *cmd.Dependencies)
| 49 | } |
| 50 | |
| 51 | func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions { |
| 52 | return &CreateOptions{ |
| 53 | CreateFlags: flags, |
| 54 | Dependencies: dependencies, |
| 55 | GetAllEnvironmentsCallback: func() ([]*environments.Environment, error) { |
| 56 | return selectors.GetAllEnvironments(dependencies.Client) |
| 57 | }, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func NewCmdCreate(f factory.Factory) *cobra.Command { |
| 62 | createFlags := NewCreateFlags() |
no test coverage detected