cli

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 31 Imported by: 0

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 BuildInfo

func BuildInfo(version, commit, date string) string

BuildInfo returns a version string for --version.

func Execute

func Execute(version string) int

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

func NewRootCommand(version string) *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL