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

Method GetSpacedClient

pkg/factory/factory.go:68–75  ·  view source on GitHub ↗
(requester apiclient.Requester)

Source from the content-addressed store, hash-verified

66}
67
68func (f *factory) GetSpacedClient(requester apiclient.Requester) (*client.Client, error) {
69 // NOTE: Don't start the spinner here because it may prompt for user input,
70 // and GetSpacedClient has no access to the spinner in order to stop it.
71 //
72 // We could link the spinner into GetSpacedClient, but that feels like we're jumping through
73 // too many hoops when this is a niche situation and we can just turn the spinner off.
74 return f.client.GetSpacedClient(requester)
75}
76
77func (f *factory) GetCurrentSpace() *spaces.Space {
78 return f.client.GetActiveSpace()

Callers

nothing calls this directly

Calls 1

GetSpacedClientMethod · 0.65

Tested by

no test coverage detected