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
alibi amend FILE.kdl ID asks the four questions of one alibi in an alibi file that alibi init wrote again, and
writes the answers in its place, whole, sealed, and says which alibi it amended, by its ID, which answers changed, and
the command that checks the alibi file. Each answer comes from the file given to --tried-file, --evidence-file, --unfixable-file, or --reason-file, - for standard input, or, at a terminal, from the editor, which starts with
the old answer. With no terminal, or with --no-input, an answer that no flag gives stays as it was. The alibi keeps
its ID, since its path, snippet, and occurrence stay. It reads no project, so it needs no git. It refuses, with
exit status 2 and nothing written, an alibi file that is missing, written by hand, or not valid, a command line
with no ID, an ID that picks no alibi, or several, or that several alibis share, an answer with nothing in it, answers
that are all as they were, and a reason that another alibi has.
alibi add FILE.kdl, with no match address, goes through each match of an alibi file that alibi init wrote that has
no alibi, in the order the check prints them, when standard input is a terminal. For each match it shows PATH:LINE: TEXT and how many matches are left, asks the four questions of alibi add in the editor, and writes the
alibi as soon as its four answers are in, so Ctrl-C keeps the alibis already written. An answer with nothing in it
writes nothing for that match, says the match is left for a fix of the code, and goes on to the next. At the end it
says how many alibis it wrote and how many matches it left, and the command that checks the alibi file. With no
terminal, or with --no-input, it asks nothing and writes nothing, and exits with 2 with the command line of alibi add for the first match with no alibi and how many there are. An alibi file with no match that lacks an alibi
gets a line that says so and exit status 0, with or without a terminal. --tried-file, --evidence-file, --unfixable-file, and --reason-file with no match address are an error, since one file of answers is for one
match. Before this, alibi add FILE.kdl was an error that asked for a match address.
alibi remove FILE.kdl ID ... takes the alibis whose IDs it is given out of an alibi file that alibi init wrote,
writes the alibi file whole, sealed, and says which alibis it removed, by their IDs, and the command that checks the
alibi file. An ID is an ID start, as alibi list --id takes it: seven to 64 hexadecimal digits that an alibi's ID
starts with. It asks no question and reads no project, so it needs no git. It refuses, with exit status 2 and
nothing written, an alibi file that is missing, written by hand, or not valid, a command line with no ID, and any ID
that picks no alibi, or several, or isn't seven to 64 hexadecimal digits, with a line for each, in the words of alibi list --id. Alibis with the same path, snippet, and occurrence share an ID, and alibi remove takes out
every one that has it, and says so.
alibi remove FILE.kdl --stale takes out every alibi of an alibi file that alibi init wrote that matches nothing, the
ones a check calls stale: its snippet occurs nowhere in its file, or the glob doesn't match its file. It finds them
by checking the alibi file against its project, as alibi FILE.kdl does, so it needs git. It says which alibis it
removed, by their IDs, and refuses, with exit status 2 and nothing written, an alibi file with no stale alibi, and a
command line that has both --stale and an ID, or neither.
Changed
The line of a failed check about a stale alibi, in an alibi file that alibi init wrote, says matches nothing: run alibi remove FILE.kdl ID, and, if its match is still there, alibi add FILE.kdl PATH:LINE for it,
with the alibi file's name as you gave it and the alibi's ID, where 0.4.16 said matches nothing: remove it, or bring its path and snippet up to date. Nobody can bring the snippet of an alibi in
such a file up to date, since an edit by hand breaks its seal. For an alibi file written by hand, the line is as it
was.
When alibi add finds its alibi file changed since it read it, it writes alibi: todo.kdl changed since Alibi read it, so nothing was written: run the command again, where 0.4.16 said it
changed while the questions were asked. The exit status, 2, and the refusal to write anything are as in 0.4.16.
Fixed
alibi add refuses a match that ends on a blank line that no line of text follows, such as a match of a pattern for
two line breaks at the end of a file, before it asks its first question, and says that no alibi can excuse it. 0.4.16
asked all four questions, and then failed with a request to report a fault. A match that ends on a blank line with
text after it gets a snippet that runs on to that text, where 0.4.16 failed the same way.
The command line that alibi add shows with each question after the first has PATH where an answer came from
standard input, as --tried-file PATH. 0.4.16 wrote --tried-file -, which gave the next run no answer, since
standard input is read once, and stopped it with a message to fix the code.
alibi add writes the alibi into the file that a symlink links to, and leaves the symlink as it is. 0.4.16 replaced
the symlink with a copy of the alibi file that held the new alibi, and left the file it linked to as it was.
alibi init --help --files a --files b, and alibi add --help --tried-file a --tried-file b, print how to use the
command and exit with 0, as alibi list --id ID --help does, where they said the flag was given 2 times and exited
with 2. --help beside an alibi file is still an error, and a command line with a flag given twice and no --help
is as it was.