v0.1.2

CLI Reference

Last updated


This page lists the gorc command syntax, startup checks, and exit codes.

Syntax


  1. gorc <file.http>

ArgumentRequiredDescription
<file.http>YesRequest file to parse and watch; only the first argument is read, the rest are ignored

There are no flags or subcommands, and no environment variables are read.

Startup Sequence


OrderCheckstderr on failureExit code
1File argument providedUsage: program {file}.http1
2File existsfile '<path>' does not exist1
3File info readablefailed to get file '<path>': <err>1
4Create file watcherfailed to create file watcher: <err>No exit here; step 5 then calls Add on a nil watcher and the Go runtime panics (2)
5Watch the filefailed to watch file '<path>': <err>1
6Initial parsefailed to parse file '<path>': <err>1
7Run the TUIfailed to run TUI: <err>1

When all checks pass the TUI starts; exiting normally with <kbd>Esc</kbd> or <kbd>Ctrl+C</kbd> returns 0.

Binary Name


Install methodBinary
go build -o gorc ./cmd/tuigorc
go install .../cmd/tui@latest$(go env GOPATH)/bin/tui

See Getting Started for installation steps.
中文