Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cli is the whole sprut program as a function, so that it can be driven in-process with explicit args, environment and standard streams.

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is set at release time with -ldflags "-X github.com/marvell/sprut/internal/cli.Version=...".

Functions

func Run

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

Run executes sprut with the given args (args[0] is the program name), environment (in os.Environ form) and standard streams, and returns the process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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