cli

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli is the Cobra command tree: it parses flags, calls one use case and renders its result. It holds no logic of its own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, wire Wire, args []string, stdout, stderr io.Writer) int

Execute runs the CLI and returns the process exit code.

Types

type Options

type Options struct {
	JSON    bool
	Verbose bool
	Yes     bool
	NoInput bool
	Dir     string
	// LogLevel is the least severe internal log level written to stderr.
	LogLevel string
}

Options are the global flags the composition root needs to wire an App.

type Wire

type Wire func(Options) (*app.App, output.Renderer, error)

Wire builds the use cases and the renderer for one invocation.

Jump to

Keyboard shortcuts

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