Categorygithub.com/lusingander/topi
repositorypackage
0.0.0-20220626074532-cc7aed7f8c1a
Repository: https://github.com/lusingander/topi.git
Documentation: pkg.go.dev

# README

topi

Terminal OpenAPI documentation viewer 🐐

About

topi is still under development... 🐐

topi is the documentation viewer for OpenAPI v3 definitions in the terminal.

(This image show https://github.com/github/rest-api-description)

Installation

$ go install github.com/lusingander/topi@latest

(require Go 1.18+)

Usage

$ topi <path>

path can be local file path or remote URL.

Keybindings

Common

common keybindings for all pages

KeyDescription
Backspaceback to perv page
Ctrl+cquit
?show help page

List page

keybindings for list-syle pages

KeyDescription
jcursor down
kcursor up
f lnext page
b hprev page
ggo to start
Ggo to end
/Enter filtering mode
Enter(default) select item, (filtering) apply filter
Esc(filtering) cancel filter, (filter applied) remove filter

Document page

keybindings for document pages

KeyDescription
jpage down one line
kpage up one line
fpage down
bpage up
dhalf page down
uhalf page up
Tabselect link
xopen selecting link

specific to the credits page

KeyDescription
ttoggle credits list

License

MIT