cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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