command

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package command wires the urfave/cli/v3 command tree over the domain logic.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotHolds = errors.New("isnow does not hold")

ErrNotHolds signals the membership test failed (CLI exit code 1).

Functions

func ExitCode

func ExitCode(err error) int

ExitCode maps a command error to the CLI exit code (specs/contracts/cli.md).

func Report

func Report(w io.Writer, err error) int

Report writes a diagnostic for err (unless it is nil or the silent "does not hold" verdict, whose exit code is the answer) and returns the exit code. It is the composition root's single place for surfacing errors.

func Root

func Root(env *app.Env) *cli.Command

Root builds the isnow command tree bound to env. Exit-code handling is left to the caller (main), so ExitErrHandler is disabled here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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