| 966 | |
| 967 | |
| 968 | class CommandSetWithPathComplete(cmd2.CommandSet): |
| 969 | def __init__(self, dummy) -> None: |
| 970 | """Dummy variable prevents this from being autoloaded in other tests""" |
| 971 | super().__init__() |
| 972 | |
| 973 | parser = cmd2.Cmd2ArgumentParser() |
| 974 | parser.add_argument("path", nargs="+", help="paths", completer=cmd2.Cmd.path_complete) |
| 975 | |
| 976 | @cmd2.with_argparser(parser) |
| 977 | def do_path(self, app: cmd2.Cmd, args) -> None: |
| 978 | """Path Command""" |
| 979 | app.poutput(args.path) |
| 980 | |
| 981 | |
| 982 | def test_path_complete(manual_command_sets_app) -> None: |
no outgoing calls
searching dependent graphs…