| 657 | |
| 658 | # shows that the command is interrupted if we don't report we've handled the sigint |
| 659 | class SigintUnhandledCommandSet(cmd2.CommandSet): |
| 660 | def do_bar(self, _) -> None: |
| 661 | """Bar Command""" |
| 662 | self._cmd.poutput("in do bar") |
| 663 | self._cmd.sigint_handler(signal.SIGINT, None) |
| 664 | self._cmd.poutput("end of do bar") |
| 665 | |
| 666 | cs2 = SigintUnhandledCommandSet() |
| 667 | manual_command_sets_app.register_command_set(cs2) |
no outgoing calls
searching dependent graphs…