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

cli

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Overview

Package cli binds terminal commands to domain services. It owns presentation, explicit execution opt-in and local artifacts, never architecture analysis.

Index

Constants

View Source
const WorkspaceReportVersion = 1

WorkspaceReportVersion is the version of schemas/workspace-report.schema.json.

Variables

View Source
var Version = "0.1.0-dev"

Version is set at release time with -ldflags "-X .../internal/cli.Version=X.Y.Z"; `go install module@vX.Y.Z` builds report the module version instead.

Functions

func Interactive

func Interactive(ctx context.Context, dir string, in io.Reader, out, errout io.Writer) int

Interactive is bare `radar` on a terminal: it shows the repository's branches and dispatches each menu choice to the same command line Run executes, so it adds no analysis or execution path of its own. Tests run only after the person confirms each --run.

func Run

func Run(ctx context.Context, args []string, out, errout io.Writer) int

Run executes one command. Exit codes: 0 success or informational report, 1 a supported check failed, 2 invocation or analysis error.

Types

type ConfigurationInput

type ConfigurationInput struct {
	Kind        string       `json:"kind"`
	Path        string       `json:"path"`
	Digest      string       `json:"digest"`
	FinalDigest string       `json:"final_digest,omitempty"`
	Status      model.Status `json:"status"`
	Explanation string       `json:"explanation"`
	// contains filtered or unexported fields
}

ConfigurationInput binds the exact decoded invocation bytes. These inputs are independent of candidate commits; observations do not lock the filesystem.

Jump to

Keyboard shortcuts

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