MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / getTasks

Method getTasks

internal/cli/cli_helpers.go:140–146  ·  view source on GitHub ↗

getTasks returns recent cluster tasks across all profiles.

(ctx context.Context)

Source from the content-addressed store, hash-verified

138
139// getTasks returns recent cluster tasks across all profiles.
140func (s *cliSession) getTasks(ctx context.Context) ([]*api.ClusterTask, error) {
141 if s.group != nil {
142 return s.group.GetGroupTasks(ctx)
143 }
144
145 return s.single.GetClusterTasks()
146}
147
148// initCLISession bootstraps configuration and returns an authenticated session.
149// Returns (nil, nil) when bootstrap handled an early-exit flag (--version,

Callers 1

runTasksListFunction · 0.80

Calls 2

GetGroupTasksMethod · 0.80
GetClusterTasksMethod · 0.80

Tested by

no test coverage detected