cli

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cli implements gh-lazydispatch's non-interactive commands. Every command here reads; nothing dispatches. The TUI and these commands sit on the same internal packages, so an agent and a human see the same parse of the same workflow run.

Index

Constants

This section is empty.

Variables

View Source
var ErrUsage = errors.New("usage")

ErrUsage is returned when arguments do not name a command this package implements. Callers print usage and exit non-zero.

Functions

func IsCommand

func IsCommand(args []string) bool

IsCommand reports whether args name a CLI command rather than the TUI, so main can keep launching the TUI when it is given no command.

func Run

func Run(args []string, stdout, stderr io.Writer) int

Run executes the command named by args (without the program name) and returns a process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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