Repository navigation
CLI Generated Man
Prints Quinjet's manual page in roff on stdout, or writes one page per command into a directory.
Usage:
quinjet man [--dir <DIR>] [--json]Arguments: none.
Options:
| Name | Type / values | Default | What it does |
|---|---|---|---|
--dir <DIR> |
path | unset | Writes one page per command into this directory and prints what it wrote, instead of printing the top page. The directory is created if it does not exist. |
--json |
flag | off | Prints the page, or the list of written paths, as one JSON object. |
-h, --help |
flag | off | Prints this verb's help on stdout and exits 0. |
Like completions, the pages are rendered on demand from
the command tree this build carries. Quinjet fully builds that clap tree once,
then renders the root and every nested command from it. Nested pages therefore
retain their complete command path and inherited global options such as -C
and --json. No repository is read, and -C is ignored.
Without --dir the output is the top-level page, in roff, on stdout:
$ quinjet man | head -5
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH QUINJET 1 "quinjet <version>"
.SH NAME
quinjet \- A fast, live, keyboard-first Git source-control interface for the terminalPiping that into a pager renders it the way man would:
quinjet man | man -l ---dir writes the whole tree, one file per command, named the way man
expects to find a subcommand's page. Nested verbs are joined with hyphens, so
quinjet branch create becomes quinjet-branch-create.1:
$ quinjet man --dir /tmp/quinjet-man
Wrote 45 pages to /tmp/quinjet-man
/tmp/quinjet-man/quinjet.1
/tmp/quinjet-man/quinjet-tui.1
/tmp/quinjet-man/quinjet-status.1
...To install them for your own account, write into the man1 directory of a
path on MANPATH:
quinjet man --dir ~/.local/share/man/man1
man quinjet
man quinjet-branch-create~/.local/share/man is searched by default on most Linux distributions and on
macOS. A system-wide install is the same command against
/usr/local/share/man/man1, which needs root.
The command generates pages but does not install them automatically. Every page is rewritten on each run, so upgrading Quinjet and repeating the command is all that is needed to bring installed pages up to date. Files in the directory that Quinjet did not write are left alone.
--json shape without --dir, the page as one string:
{
"page": ".ie \\n(.g .ds Aq \\(aq\n.el .ds Aq '\n.TH QUINJET 1..."
}--json shape with --dir, the paths in the order they were written:
{
"pages": [
"/tmp/quinjet-man/quinjet.1",
"/tmp/quinjet-man/quinjet-tui.1",
"/tmp/quinjet-man/quinjet-status.1"
]
}Examples:
quinjet man
quinjet man | man -l -
quinjet man --dir ~/.local/share/man/man1
quinjet man --dir ./build/man --json-
quinjet completionsfor shell completion scripts - Generated references, the rest of this group
- All
quinjetcommands
Generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Pull Request
- View
- Commits
- Files
- Diff
- Conversation
- Checks
- Logs
- Open
- Merge
- Admin Merge
- Auto Merge
- Disable Auto Merge
- Dequeue
- Ready
- Draft
- Review
- Reviews
- Comment
- Edit Last Comment
- Delete Last Comment
- Edit
- Update Branch
- Lock
- Unlock
- Subscribe
- Unsubscribe
- Allow Maintainer Edits
- Disallow Maintainer Edits
- Revert
- Close
- Reopen
Guides
Optimization
Rust practices