getTasks returns recent cluster tasks across all profiles.
(ctx context.Context)
| 138 | |
| 139 | // getTasks returns recent cluster tasks across all profiles. |
| 140 | func (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, |
no test coverage detected