cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package cli wires the command-line interface together and bootstraps the platform-go observability suite that the rest of the application builds on.

The CLI is tarp's single entrypoint: `analyze` reports the functions in a package that carry no direct unit test, `cover` renders the same verdict over a coverage profile, and new subcommands hang off the root command alongside them.

Index

Constants

View Source
const ConfigFilePathEnvVar = config.EnvVarPrefix + "CONFIG_FILEPATH"

ConfigFilePathEnvVar names the environment variable that seeds the --config flag: when it points at a JSON config file, that file is loaded instead of the flag/environment defaults.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) error

Execute builds the root command, runs it, and tears down the observability suite afterwards so buffered telemetry is flushed even when a command fails.

Errors are printed here rather than by cobra so that --fail-on-found can exit non-zero without also printing an error: the report it just wrote is the message, and CI does not need "Error:" stapled underneath it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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