cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Overview

Package cli defines the xf command tree and its process entry point.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordInterruptSignal

func RecordInterruptSignal(sig os.Signal)

RecordInterruptSignal stores the signal that terminated the process.

func Run

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

Run builds the command tree, dispatches args, and returns the exit status.

It never calls os.Exit, so the caller owns process termination and tests can exercise routing and error reporting in-process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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