cli

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 20 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

type RunGetter added in v1.12.0

type RunGetter interface {
	GetWorkflowRun(runID int64) (*github.WorkflowRun, error)
}

RunGetter fetches one workflow run by ID. The subset of *github.Client that watch's poll loop needs, so the loop is testable without a live repository.

Jump to

Keyboard shortcuts

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