cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package cli is the command line shared by the engine binary and the thin per-detector binaries (emudhra-scan), which pin one detector and keep their old command names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c Config, args []string, stdout, stderr io.Writer) int

Run runs the command line and returns the exit status.

func SetMemoryLimit

func SetMemoryLimit()

SetMemoryLimit keeps the heap near what is actually live: archive members and large files are held one at a time, and without a limit the collector lets the heap grow to about twice that. GOMEMLIMIT in the environment wins.

Types

type Config

type Config struct {
	Tool    string
	Version string
	// Detector pins a single detector (thin binaries). Empty: --detector picks.
	Detector string
	// Summary is the first line of the usage text.
	Summary string
}

Config describes one binary.

Jump to

Keyboard shortcuts

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