cmd

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) error

func ExitCode added in v0.22.0

func ExitCode(err error) int

ExitCode maps a command error to the exit code the lstk process terminates with: the first *exec.ExitError in the chain carries that child's exact code (a proxied tool's, or one of lstk's own subprocesses), an output.ExitCodeError carries the --json convention (3 CONFIRMATION_REQUIRED, 4 AUTH_REQUIRED), anything else collapses to 1. main.go and instrumentCommands share it, so the recorded exit_code is the real one.

func NewRootCmd added in v0.2.0

func NewRootCmd(cfg *env.Env, tel *telemetry.Client, logger log.Logger) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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