Example #1
0
def main() -> None:
    parser = command_line_args.create_parser(command_map)
    args = parser.parse_args()
    check_prereqs_installed()
    command_line_args.execute_command(args, command_map)
Example #2
0
 def assert_raises_parser_error(self, command_map: CommandMap,
                                args: List[str]):
     parser = command_line_args.create_parser(backend.command_map)
     parsed_args = parser.parse_args(args)
     with self.assertRaises(TypeError):
         command_line_args.execute_command(parsed_args, command_map)
Example #3
0
def main() -> None:
    parser = command_line_args.create_parser(command_map,
                                             accept_target_environment=True)
    args = parser.parse_args()
    check_prereqs()
    command_line_args.execute_command(args, command_map)