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

Function NewCreateOptions

pkg/cmd/runbook/snapshot/create/create.go:77–84  ·  view source on GitHub ↗
(createFlags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

75}
76
77func NewCreateOptions(createFlags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions {
78 return &CreateOptions{
79 CreateFlags: createFlags,
80 RunbooksOptions: shared.NewGetRunbooksOptions(dependencies),
81 GetAllProjectsCallback: func() ([]*projects.Project, error) { return shared.GetAllProjects(dependencies.Client) },
82 Dependencies: dependencies,
83 }
84}
85
86func NewCmdCreate(f factory.Factory) *cobra.Command {
87 createFlags := NewCreateFlags()

Callers 1

NewCmdCreateFunction · 0.70

Calls 2

NewGetRunbooksOptionsFunction · 0.92
GetAllProjectsFunction · 0.92

Tested by

no test coverage detected