(f factory.Factory)
| 29 | ) |
| 30 | |
| 31 | func NewCmdCreate(f factory.Factory) *cobra.Command { |
| 32 | cmd := &cobra.Command{ |
| 33 | Use: "create", |
| 34 | Short: "Create an account", |
| 35 | Long: "Create an account in Octopus Deploy", |
| 36 | Example: heredoc.Docf("%s account create", constants.ExecutableName), |
| 37 | Aliases: []string{"new"}, |
| 38 | RunE: func(cmd *cobra.Command, args []string) error { |
| 39 | return createRun(f, cmd) |
| 40 | }, |
| 41 | } |
| 42 | |
| 43 | return cmd |
| 44 | } |
| 45 | |
| 46 | func createRun(f factory.Factory, c *cobra.Command) error { |
| 47 | dependencies := cmd.NewDependencies(f, c) |
nothing calls this directly
no test coverage detected