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

Function ContributeAccount

pkg/cmd/worker/shared/view.go:87–94  ·  view source on GitHub ↗
(opts *ViewOptions, accountID string)

Source from the content-addressed store, hash-verified

85}
86
87func ContributeAccount(opts *ViewOptions, accountID string) ([]*output.DataRow, error) {
88 account, err := opts.Client.Accounts.GetByID(accountID)
89 if err != nil {
90 return nil, err
91 }
92 data := []*output.DataRow{output.NewDataRow("Account", account.GetName())}
93 return data, nil
94}
95
96func getHealthStatus(worker *machines.Worker) string {
97 switch worker.HealthStatus {

Callers 1

contributeEndpointFunction · 0.92

Calls 2

NewDataRowFunction · 0.92
GetNameMethod · 0.65

Tested by

no test coverage detected