Projects have their own name, description and goal; the template is shown only as origin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
parent
334e0d3eb6
commit
f8ce4717a8
8 changed files with 125 additions and 24 deletions
|
|
@ -78,8 +78,8 @@ def _project(a) -> int:
|
|||
print(f"{tid}\ttemplate\t-\t{d.data.get('title', '')}")
|
||||
return 0
|
||||
if a.action == "new":
|
||||
path = J.instantiate(reg, a.name, a.extra, a.environment,
|
||||
dict(kv.split("=", 1) for kv in a.set))
|
||||
path = J.instantiate(reg, a.name, a.extra, a.environment, dict(kv.split("=", 1) for kv in a.set),
|
||||
title=a.title, description=a.description, goal=a.goal)
|
||||
print(path); return 0
|
||||
d = reg.projects.get(a.name)
|
||||
if d is None:
|
||||
|
|
@ -154,6 +154,9 @@ def main(argv: list[str] | None = None) -> int:
|
|||
sp.add_argument("--environment", "-e", default="")
|
||||
sp.add_argument("--set", "-s", action="append", default=[], help="new: attribute=value")
|
||||
sp.add_argument("--operator", "-o", default="")
|
||||
sp.add_argument("--title", default=None, help="new: the project's own name (default: its id)")
|
||||
sp.add_argument("--description", default="", help="new: what the project is")
|
||||
sp.add_argument("--goal", default="", help="new: what should be true when it is done")
|
||||
sp.add_argument("--target", default=None)
|
||||
sp.add_argument("--mode", default="manual", choices=["manual", "auto-confirm"])
|
||||
sp = sub.add_parser("score", help="how often each runbook was tried and how it went")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue