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