Complete the command line in fish, answered by zfj __complete #45
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
jeff/zfj#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #44
The completion engine, the
zfj completioncommand, and the fish script. Glossary Completion script and ADR 0007 go in with this one.zfj __complete <words…>, hidden fromzfj --help, answers as ADR 0007 says.--color's values), and the command words after them.allowedlist or an enum's tags (--state,--protocol,--color).rest--get:files, since they belong to another program.zfj op: operation names with their summaries, then that operation's params as--nameflags.--helpreads (each group'scommands, each Options struct'sshort,positional,restandnotes, the generated params), so there is no second copy to keep in step. The top-level commands inmain.ziglikely want a table with summaries, whichzfj --helpcould then print from.zfj completion fishprintssrc/cli/completions/zfj.fish, embedded.zfj completionwith no shell, or an unknown one, is a usage error naming the four.zfj __completewithcommandline -opcplus the current token, keeps descriptions, maps:files/:dirsto fish's file and directory completion, and treats an unknown directive as:none.__complete: words in, candidates and directive out.zfj issandzfj issue list --st.