-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.py
More file actions
68 lines (64 loc) · 2.01 KB
/
Copy pathbrowser.py
File metadata and controls
68 lines (64 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from __future__ import annotations
import argparse
from tools import smoke_test_standalone
from tools.cli_support import add_passthrough_command
from tools.command_docs import command_doc
from tools.render_review import (
browser_check,
diff_review,
family_sample_workbench,
geometry_cleanup_workbench,
review,
sweep,
)
def register(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) -> None:
add_passthrough_command(
subparsers,
name="review",
doc=command_doc("browser", "review"),
target_main=review.main,
parser_factory=review.build_parser,
)
add_passthrough_command(
subparsers,
name="check",
doc=command_doc("browser", "check"),
target_main=browser_check.main,
parser_factory=browser_check.build_parser,
allow_parser_remainder=True,
)
add_passthrough_command(
subparsers,
name="sweep",
doc=command_doc("browser", "sweep"),
target_main=sweep.main,
parser_factory=sweep.build_parser,
)
add_passthrough_command(
subparsers,
name="diff",
doc=command_doc("browser", "diff"),
target_main=diff_review.main,
parser_factory=diff_review.build_parser,
)
add_passthrough_command(
subparsers,
name="workbench-samples",
doc=command_doc("browser", "workbench-samples"),
target_main=family_sample_workbench.main,
parser_factory=family_sample_workbench.build_parser,
)
add_passthrough_command(
subparsers,
name="workbench-cleanup",
doc=command_doc("browser", "workbench-cleanup"),
target_main=geometry_cleanup_workbench.main,
parser_factory=geometry_cleanup_workbench.build_parser,
)
add_passthrough_command(
subparsers,
name="smoke-standalone",
doc=command_doc("browser", "smoke-standalone"),
target_main=smoke_test_standalone.main,
parser_factory=smoke_test_standalone.build_parser,
)