(flags *CreateFlags, dependencies *cmd.Dependencies)
| 68 | } |
| 69 | |
| 70 | func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions { |
| 71 | return &CreateOptions{ |
| 72 | CreateFlags: flags, |
| 73 | Dependencies: dependencies, |
| 74 | GetAllEnvironmentsCallback: func() ([]*environments.Environment, error) { |
| 75 | return selectors.GetAllEnvironments(dependencies.Client) |
| 76 | }, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func NewCmdCreate(f factory.Factory) *cobra.Command { |
| 81 | createFlags := NewCreateFlags() |
no test coverage detected