MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewCmdCreate

Function NewCmdCreate

pkg/cmd/account/create/create.go:31–44  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

29)
30
31func 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
46func createRun(f factory.Factory, c *cobra.Command) error {
47 dependencies := cmd.NewDependencies(f, c)

Callers

nothing calls this directly

Calls 1

createRunFunction · 0.70

Tested by

no test coverage detected