(args: argparse.Namespace)
| 72 | |
| 73 | |
| 74 | def impl(args: argparse.Namespace) -> int: |
| 75 | args.cmd = tuple(args.cmd) |
| 76 | if args.tool == 'cd': |
| 77 | return cd(args.subdir, args.cmd) |
| 78 | elif args.tool == 'ignore-exit-code': |
| 79 | return ignore_exit_code(args.cmd) |
| 80 | elif args.tool == 'n1': |
| 81 | return n1(args.cmd) |
| 82 | else: |
| 83 | raise NotImplementedError(f'unexpected tool: {args.tool}') |
| 84 | |
| 85 | |
| 86 | def main(argv: Sequence[str] | None = None) -> int: |
no test coverage detected