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. The editor's file of each question shows the alibi as alibi ID PATH, above the question. The editor's file marks its comment lines with #, or, when a line of the old
answer starts with #, with the first of ; @ ! $ % ^ & | : that starts no line of it, so that no line of an old
answer is dropped, as git does with core.commentChar=auto. 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 editor that ends with a status other than 0,
such as :cq in vim, ends the walk with exit status 2 and says that nothing was written for that match, and how many
alibis the walk had added before it, which stay in the alibi file. 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. The editor's file of each question shows the match, as for alibi add FILE.kdl PATH:LINE below. Before this, alibi add FILE.kdl was an error that asked for a match address.
Changed
The file that the editor opens for a question of alibi add FILE.kdl PATH:LINE shows the match as the check prints
it, PATH:LINE: TEXT, in a comment line above the question, so that the match stays in view when the editor fills
the screen. Alibi drops the line from the answer, as it drops the question. It shows a control character from a
project file as an escape such as \x1B, so that no text of a project file can end the comment line or become part
of the answer. 0.4.17 showed the question alone.
Breaking: An alibi file with no format node, which someone wrote by hand, is an error with exit status 2 for a
check, for alibi list, and for alibi add, alibi amend, and alibi remove. Its line says the alibi file was
written by hand, which Alibi no longer reads, and gives the two command lines that create it anew, with the alibi
file's name as you gave it: alibi init FILE.kdl --files GLOB --pattern REGEX, with the glob and the pattern of the
old file, after you move it aside, and alibi add FILE.kdl, which walks each match that has no alibi. 0.4.16 read such
a file, with no seal and no id, and its alibis, which had a reason and none of the other three answers. Alibi
files that Alibi wrote, in format 1, are read as before. The alibi files in examples/alibi/ are still written by
hand, so a copy of one in .config/alibi/ is an error too: start from one with alibi init FILE.kdl --example NAME.
The line of a failed check about a stale alibi 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
an alibi file that alibi init wrote up to date, since an edit by hand breaks its seal.
--help anywhere on a command line prints how to use the command that the command line starts with, or Alibi, and
exits with 0, whatever else is on it: an alibi file, other options, or a mistake such as an unknown option or an
option with no value. alibi add todo.kdl lib/invoice.rb:2 --help, alibi list a.kdl --help, and alibi todo.kdl --help printed alibi: Invalid flag `FILE`: conflicts with --help and exited with 2 in 0.4.17,
and alibi add todo.kdl --bogus --help printed the fault for --bogus. A word after -- is still a file, and --version beside an alibi file without --help is still an error.
Fixed
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. A command line with a flag given twice and no --help is as it was.