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

Function NewCreateOptions

pkg/cmd/account/gcp/create/create.go:52–60  ·  view source on GitHub ↗
(flags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected