cli

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package cli implements triage's command-line interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string, version, channel string, launchApp func(*app.Env) error) int

Main runs triage with args and returns the process exit code. launchApp starts the interactive app.

func Run

func Run(env *app.Env, args []string) error

Run executes a command-line invocation other than launching the app.

func Usage

func Usage() string

Usage returns the top-level help text.

Types

type UsageError

type UsageError struct {
	// contains filtered or unexported fields
}

UsageError is an error that should be followed by usage help.

func (UsageError) Error

func (e UsageError) Error() string

Jump to

Keyboard shortcuts

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