cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package cli is dstow's command-line front end and composition root (A1/A2): the only consumer that turns the app core's data into a cobra CLI, renders results through the ui printer, and maps typed domain errors to exit codes. Every other package returns data; cli owns the streams-facing surface — command wiring, help text, the §1.4 error wording, and the A3 exit-code map.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run is the entry point cmd/dstow wires against (A2). It builds the cobra surface over a fresh env, executes it, and returns the process exit code — the one place in dstow that owns exit codes (A3).

Types

This section is empty.

Jump to

Keyboard shortcuts

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