package
0.22.0-dev
Repository: https://github.com/elves/elvish.git
Documentation: pkg.go.dev

# Packages

Package progtest contains utilities for wrapping [prog.Program] instances into Elvish functions, so that they can be tested using the [src.elv.sh/pkg/eval/evaltest] framework.

# Functions

BadUsage returns a special error that may be returned by a [Program]'s Run method.
Composite returns a [Program] made up from subprograms.
Exit returns a special error that may be returned by a [Program]'s Run method.
NextProgram returns a special error that may be returned by the Run method of a [Program] that is part of a [Composite] program, indicating that the next program should be tried.
Run parses command-line flags and runs the [Program], returning the exit status.

# Variables

DeprecationLevel is a global flag that controls which deprecations to show.

# Structs

DaemonPaths stores the -db and -sock flags.
FlagSet wraps a [flag.FlagSet], and provides methods to register flags shared by multiple subprograms on demand.

# Interfaces

Program represents a subprogram.