Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Set via ldflags at build time: -ldflags "-X github.com/git-treeline/cli/cmd.Version=v0.3.0"

Functions

func Execute

func Execute()

Types

type CliError

type CliError struct {
	Message string
	Hint    string
	DocsURL string
}

CliError is a user-facing error with optional remediation hint and docs link. The root command's error handler formats these consistently.

func (*CliError) Error

func (e *CliError) Error() string

type RouteEntry

type RouteEntry struct {
	Port int    `json:"port"`
	URL  string `json:"url"`
}

RouteEntry pairs a port with its resolved URL.

Jump to

Keyboard shortcuts

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