Documentation
¶
Overview ¶
Package cli assembles vrok's commands. It is the composition root: this is the only package that knows how the domain, HTTP, tunnel and terminal layers are wired together, and the only one allowed to depend on all of them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute runs vrok and returns the process exit code.
Signal handling lives here so that every command, not just share, stops promptly on Ctrl+C.
func NewRootCommand ¶
NewRootCommand builds the vrok command tree.
`vrok share ./file` and `vrok ./file` are the same command: the root accepts the share flags and arguments directly, because the shortest useful thing a user can type should be the thing that works.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.