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

Function newDependencies

pkg/cmd/dependencies.go:47–57  ·  view source on GitHub ↗
(f factory.Factory, cmd *cobra.Command, client *client.Client)

Source from the content-addressed store, hash-verified

45}
46
47func newDependencies(f factory.Factory, cmd *cobra.Command, client *client.Client) *Dependencies {
48 return &Dependencies{
49 Ask: f.Ask,
50 CmdPath: cmd.CommandPath(),
51 Out: cmd.OutOrStdout(),
52 Client: client,
53 Host: f.GetCurrentHost(),
54 NoPrompt: !f.IsPromptEnabled(),
55 Space: f.GetCurrentSpace(),
56 }
57}
58
59func (d *Dependencies) GetSpaceNameOrEmpty() string {
60 if d.Space != nil {

Callers 2

NewDependenciesFunction · 0.85
NewSystemDependenciesFunction · 0.85

Calls 3

GetCurrentHostMethod · 0.65
IsPromptEnabledMethod · 0.65
GetCurrentSpaceMethod · 0.65

Tested by

no test coverage detected