()
| 58 | var commandContextCancel context.CancelFunc |
| 59 | |
| 60 | func currentContext() context.Context { |
| 61 | if commandContext == nil { |
| 62 | return context.Background() |
| 63 | } |
| 64 | return commandContext |
| 65 | } |
| 66 | |
| 67 | func initCommandContext(cmd *cobra.Command) error { |
| 68 | finishCommandContext() |
no outgoing calls