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

Function NewCreateOptions

pkg/cmd/account/aws/create/create.go:53–61  ·  view source on GitHub ↗
(flags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

51}
52
53func 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
63func NewCmdCreate(f factory.Factory) *cobra.Command {
64 createFlags := NewCreateFlags()

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected