(aCmd *Command)
| 309 | } |
| 310 | |
| 311 | func (cmd *Command) appendCommand(aCmd *Command) { |
| 312 | if !slices.Contains(cmd.Commands, aCmd) { |
| 313 | aCmd.parent = cmd |
| 314 | cmd.Commands = append(cmd.Commands, aCmd) |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | func (cmd *Command) handleExitCoder(ctx context.Context, err error) error { |
| 319 | if cmd.parent != nil { |
no outgoing calls
no test coverage detected