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

Function NewCreateOptions

pkg/cmd/account/username/create/create.go:51–59  ·  view source on GitHub ↗
(flags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected