gunk-dev/the-valley

knot.txt

sourcecfedff357a41main's published tip history
4.7 KiB
1usage: valley knot <verb> [args]
2
3 knot <verb> [args]
4 read and write the project's plan graph: knots, at
5 refs/the-valley/knots on origin. a knot is an outcome,
6 a bug, an idea or a question; `knot schema` prints the
7 types, their statuses, active and terminal, the fields
8 and the edges. a write is one commit on the ref, made
9 without a checkout and pushed with a lease on the tip
10 it was made on; no review is involved. a write that
11 loses the lease is made again on the new tip, up to 5
12 tries. every verb takes --project NAME, another
13 project on the same host, and --json. exit status 3
14 is a conflict. needs git config valley.principal for
15 every write.
16 new <type> <title> [--parent ID] [--blocked-by ID]...
17 [--owner P] [--target PROJECT] [--body -]
18 make a knot. its id is the type's prefix
19 and 7 hex digits of the sha-256 of the
20 title's slug.
21 show <id> [--at COMMIT] [--json]
22 its fields, body and comments, each
23 comment with its id, and the edges both
24 ways. --at shows the knot at a commit of
25 the graph; claim age uses the current
26 clock, and other projects' knots use
27 their current tips.
28 log <id> [--json]
29 every commit of the graph that touched
30 the knot or its comments, newest first:
31 time, committer, operation, and the
32 files it added, changed or deleted
33 list [--type T] [--status S] [--owner P] [--ready]
34 every knot. --status takes a status,
35 active or terminal. --ready lists the
36 active, unclaimed knots whose blockers
37 are all terminal.
38 set <id> <field>=<value>... [--if <field>=<value>]...
39 [--force]
40 change status, title, source, owner,
41 target or graduated_into. a field that
42 another write changed meanwhile is a
43 conflict unless --force. --if requires
44 a field to hold a value first.
45 link <id> (--blocked-by ID | --parent ID | --change X)...
46 unlink <id> (--blocked-by ID | --parent ID | --change X)...
47 add or drop an edge. a change is
48 valley:<project>/<change id> or a github
49 pull request url. outcomes and bugs link
50 the changes that do the work, and a
51 question links the change that records
52 its answer in the source.
53 edit <id> --body -
54 replace the body with stdin
55 comment <id> (-m TEXT | --body -) [--edit COMMENT-ID]
56 add a comment. --edit replaces the body
57 of the comment with that id; its author
58 and file stay, and it records who edited
59 it and when. only the comment's author
60 or a holder of the approve grant may
61 edit it. a comment that another edit
62 changed meanwhile is a conflict.
63 comments are never deleted; log and
64 show --at read every earlier text.
65 claim <id> --run RUN
66 claim an active outcome or bug for a
67 run; an open outcome becomes
68 in-progress. a knot claimed already is
69 a conflict.
70 unclaim <id>
71 release the claim. a claim that
72 changes before the release lands is
73 a conflict.
74 schema [--json]
75 print the model