INNER CODE UNIT · Python
_cmd_log_event
hadriansecurity/OpenHack · src/openhack/cli.py:201
def _cmd_log_event(args: argparse.Namespace) -> None:
emit(run_path(args.target, args.run_id), args.actor, args.status, args.summary)
def _cmd_summarize_run(args: argparse.Namespace) -> None:
print("\n".join(summarize_run(args.target, args.run_id)))
def _cmd_validate_run(args: argparse.Namespace) -> None:
errors = validate_run(args.target, args.run_id)
if errors:
print("\n".join(errors))
raise SystemExit(1)
scope = f"{args.target}/{args.run_id}" if args.target and args.run_id else "repository"
print(format_checkpoint(
"Validate",
f"Validation passed for {scope}.",
review="Use summarize-run for the final run counts before handoff.",