cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 37 Imported by: ? 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 kno binary, built on fang over cobra.

The bar: a developer should never wonder what just happened, what it cost, or what to do next. Every command answers all three. Cost is always visible and confirmed before it is spent, every command ends by naming the next one, interruption is boring (checkpoint, then --resume), and errors name the exact fix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

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

Execute runs the CLI and returns the process exit code.

It returns the code rather than calling os.Exit so that main stays a one-liner and every path here is testable — an Execute that exited could only be tested by spawning a subprocess.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds the kno command tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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