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