Add consumer alignment review kit
This commit is contained in:
parent
f562e2498d
commit
8e591132f8
38 changed files with 2244 additions and 83 deletions
|
|
@ -10,6 +10,7 @@ from typing import Any
|
|||
from .api import serve
|
||||
from .service import (
|
||||
CanonServiceError,
|
||||
alignment_template,
|
||||
artifact_graph,
|
||||
generate_agent_briefs,
|
||||
generate_indexes,
|
||||
|
|
@ -23,6 +24,7 @@ from .service import (
|
|||
profile_inspect,
|
||||
profile_validate,
|
||||
read_view,
|
||||
review_kit,
|
||||
validate_canon,
|
||||
write_validation_report,
|
||||
)
|
||||
|
|
@ -53,6 +55,18 @@ def build_parser() -> argparse.ArgumentParser:
|
|||
standards = sub.add_parser("standards", help="List canon standard artifacts")
|
||||
standards.set_defaults(handler=_standards)
|
||||
|
||||
review_kit_cmd = sub.add_parser(
|
||||
"review-kit",
|
||||
help="Read the consumer repository alignment review kit",
|
||||
)
|
||||
review_kit_cmd.set_defaults(handler=_review_kit)
|
||||
|
||||
alignment_template_cmd = sub.add_parser(
|
||||
"alignment-template",
|
||||
help="Read the consumer alignment workplan template",
|
||||
)
|
||||
alignment_template_cmd.set_defaults(handler=_alignment_template)
|
||||
|
||||
validate = sub.add_parser("validate", help="Validate the canon infospace")
|
||||
validate.add_argument(
|
||||
"--write",
|
||||
|
|
@ -145,6 +159,14 @@ def _standards(args: argparse.Namespace) -> dict[str, Any]:
|
|||
return list_standards(_root(args))
|
||||
|
||||
|
||||
def _review_kit(args: argparse.Namespace) -> dict[str, Any]:
|
||||
return review_kit(_root(args))
|
||||
|
||||
|
||||
def _alignment_template(args: argparse.Namespace) -> dict[str, Any]:
|
||||
return alignment_template(_root(args))
|
||||
|
||||
|
||||
def _validate(args: argparse.Namespace) -> dict[str, Any]:
|
||||
if args.write:
|
||||
return write_validation_report(args.write, _root(args))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue