You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subparser_cca=subparsers_main.add_parser("cca", help="Run Continuous Configuration Automation on the repository.")
25
-
subparser_cca.add_argument("-t", "--token", type=str, help="GitHub token for accessing the repository.")
26
-
subparser_cca.add_argument("-b", "--branch-version", help="Branch-name to version mappings (e.g., -b main=0.0.0 dev=1.0.0a1) to use instead of git tags.", type=str, nargs="*", metavar="BRNACH=VERSION")
27
-
subparser_cca.add_argument("-c", "--control-center", help="Path to the control center directory containing configuration files.", type=str)
28
-
subparser_cca.add_argument("-d", "--dry-run", help="Perform a dry run without making any changes.", action="store_true")
29
-
subparser_cca.add_argument("-n", "--no-validate", help="Skip validation of the metadata.json file.", dest="validate", action="store_false")
27
+
subparser_cca=subparsers_main.add_parser(
28
+
"cca", help="Run Continuous Configuration Automation on the repository."
29
+
)
30
+
subparser_cca.add_argument(
31
+
"-t", "--token", type=str, help="GitHub token for accessing the repository."
32
+
)
33
+
subparser_cca.add_argument(
34
+
"-b",
35
+
"--branch-version",
36
+
help="Branch-name to version mappings (e.g., -b main=0.0.0 dev=1.0.0a1) to use instead of git tags.",
37
+
type=str,
38
+
nargs="*",
39
+
metavar="BRNACH=VERSION",
40
+
)
41
+
subparser_cca.add_argument(
42
+
"-c",
43
+
"--control-center",
44
+
help="Path to the control center directory containing configuration files.",
45
+
type=str,
46
+
)
47
+
subparser_cca.add_argument(
48
+
"-d", "--dry-run", help="Perform a dry run without making any changes.", action="store_true"
49
+
)
50
+
subparser_cca.add_argument(
51
+
"-n",
52
+
"--no-validate",
53
+
help="Skip validation of the metadata.json file.",
subparser_lint.add_argument("-c", "--config", help="Path to the pre-commit configuration file.", type=str, default=".devcontainer/config/pre-commit.yaml")
34
-
subparser_lint.add_argument("-r2", "--to-ref", help="Run on files changed until the given git ref. This must be accompanied by --from-ref.")
58
+
subparser_lint=subparsers_main.add_parser(
59
+
"lint", help="Run pre-commit hooks on the repository."
60
+
)
61
+
subparser_lint.add_argument(
62
+
"-x",
63
+
"--action",
64
+
help="Lint mode.",
65
+
type=str,
66
+
choices=["report", "run", "validate"],
67
+
default="run",
68
+
)
69
+
subparser_lint.add_argument(
70
+
"-c",
71
+
"--config",
72
+
help="Path to the pre-commit configuration file.",
73
+
type=str,
74
+
default=".devcontainer/config/pre-commit.yaml",
75
+
)
76
+
subparser_lint.add_argument(
77
+
"-r2",
78
+
"--to-ref",
79
+
help="Run on files changed until the given git ref. This must be accompanied by --from-ref.",
subparser_lint_mutually_exclusive_hook.add_argument("-i", "--hook-id", help="Specific hook ID to run. This will only run the specified hook.", type=str)
37
-
subparser_lint_mutually_exclusive_hook.add_argument("-s", "--hook-stage", help="Specific hook stage to run. This will only run hooks in the specified stage.", type=str)
subparser_lint_mutually_exclusive_file.add_argument("-a", "--all-files", help="Run on all files in the repository.", action="store_true")
40
-
subparser_lint_mutually_exclusive_file.add_argument("-f", "--files", help="Run on specific files.", nargs="+")
41
-
subparser_lint_mutually_exclusive_file.add_argument("-r1", "--from-ref", help="Run on files changed since the given git ref. This must be accompanied by --to-ref.")
0 commit comments