cmd

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 49 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: a proxied tool's *exec.ExitError carries that tool's exact code, an output.ExitCodeError carries the --json exit-code convention (3 CONFIRMATION_REQUIRED, 4 AUTH_REQUIRED), anything else collapses to 1. errors.As unwraps through the SilentError wrapper to reach either type. main.go and instrumentCommands both use this, so the telemetry exit_code always matches the real process exit code.

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