Man pages, and --help for all three binaries #15
Loading…
Add table
Add a link
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?
Context
Three binaries are installed (
meson.build, andbuild-aux/terminalko.spec):terminalkoterminalko-agent--idle-timeout SECONDS(crates/terminalko-agent/src/main.rs)terminalkoctllist,start,stop,signal,--help(crates/terminalko-ctl/src/main.rs)There are no man pages.
terminalkoctl --helpprints usage; the others printnothing useful.
The behaviour that a man page would describe is already written down, in
docs/spec/command-line.mdanddocs/spec/session-agent.md— including theenvironment variables (
TK_AGENT_PATH,TK_RUNTIME_DIR), the socket path, andwhat the exit status means.
Work
one and put the reason in the commit. Three pages:
terminalko(1)— what it is, that it starts an agent on demand, thekeyboard shortcuts (the list already exists in
crates/terminalko/src/shortcuts.rs), where the configuration lives, and aSEE ALSOto the other two;terminalko-agent(1)— what it does and why it exists,--idle-timeout,the socket and lock paths,
TK_RUNTIME_DIR, the environment it strips fromsessions, and that sessions do not survive logout without
loginctl enable-linger;terminalkoctl(1)— the commands, how a session may be named, whatlistprints, and that a non-zero exit means the reason was printed.
install_man), and add them to%filesin the rpmspec —
rpmbuildwill fail if a listed file is missing, which is a usefulcheck.
--helpand--versiontoterminalkoandterminalko-agent; a man pagefor a binary that cannot describe itself is half a job.
terminalkocurrentlyparses no arguments at all, so this also decides what it should do with any:
at minimum refuse unknown ones rather than ignore them.
Acceptance criteria
man terminalko,man terminalko-agentandman terminalkoctlwork from aninstalled build.
documented option.
--helpand--versionwork for all three binaries.%files.page can be brief and point at the installed docs rather than restating them.
Notes
short one somebody does.