A sub-class of SupportFuncProvider which uses its support function
| 802 | |
| 803 | |
| 804 | class SupportFuncUserSubclass1(SupportFuncProvider): |
| 805 | """A sub-class of SupportFuncProvider which uses its support function""" |
| 806 | |
| 807 | parser = cmd2.Cmd2ArgumentParser() |
| 808 | parser.add_argument("state", type=str, completer=SupportFuncProvider.complete_states) |
| 809 | |
| 810 | @cmd2.with_argparser(parser) |
| 811 | def do_user_sub1(self, ns: argparse.Namespace) -> None: |
| 812 | """User Sub1 Command""" |
| 813 | self._cmd.poutput(f"something {ns.state}") |
| 814 | |
| 815 | |
| 816 | class SupportFuncUserSubclass2(SupportFuncProvider): |
no outgoing calls
searching dependent graphs…