cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Types

type App

type App struct {
	Stdout io.Writer
	Stderr io.Writer
}

type Flags

type Flags struct {
	Verbose      int
	UltraCompact bool
	SkipEnv      bool
	Version      bool
	Help         bool
	Enrich       bool
	Deep         bool
	Env          string
}

Flags holds parsed global flags.

func ParseFlags

func ParseFlags(args []string) (Flags, []string)

ParseFlags extracts global flags from args and returns remaining args. A "--" separator stops flag parsing: everything after it is passed verbatim to the underlying command, preventing scouter from consuming flags like --help or --version that belong to the proxied tool.

Jump to

Keyboard shortcuts

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