Expand description
The semora CLI: publish Markdown and HTML to a Semora server and
wait for feedback from the page.
The library exists for the binary and its tests; it is not a stable API.
Modules§
- args
- Command-line arguments.
- bundle
- Packing a folder into a tar for a bundle push.
- client
- The HTTP API client.
- commands
- One module per command group.
- config
- Where the CLI gets its server, key and defaults.
- credentials
- Stored logins: the OS keyring (Windows, macOS) or
credentials.toml(mode 600). - docref
- Document references: a bare id, a page URL, or a websocket URL.
- exit
- Exit codes.
waitdefines them in the spec; every command uses the same ones. - output
- Printing helpers: short text by default, JSON with
--json. - remember
- Remembers which document each pushed path became, so the next push of that
path replaces it.
document.cachein the config folder has one line per path:<resolved path>\t<server>\t<id>.
Structs§
- Ctx
- Everything a command needs.
Functions§
- main_
entry - Parses arguments, runs the command and returns the process exit code.