initManagerContext starts an empty manager with Root context in the "cmd" namespace
(ctx context.Context)
| 188 | |
| 189 | // initManagerContext starts an empty manager with Root context in the "cmd" namespace |
| 190 | func initManagerContext(ctx context.Context) (context.Context, error) { |
| 191 | mgr, err := manager.NewManager(runtime.MultiContextManager().RootContext(ctx), runtime.NsCmd) |
| 192 | if err != nil { |
| 193 | return nil, err |
| 194 | } |
| 195 | if err = mgr.Bootstrap(""); err != nil { |
| 196 | return nil, err |
| 197 | } |
| 198 | return mgr.Context(), nil |
| 199 | |
| 200 | } |
| 201 | |
| 202 | func initLogLevel() { |
| 203 |
no test coverage detected
searching dependent graphs…