cli

package
v0.134.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Overview

Package cli is rlsbl's command line: the strictcli application, every command and group registration (one file per group), their flags and arguments, the payload types and human renderings of --json, and the wiring of the checks registry and the observe allowlist. No other package registers a command; handlers here call into the packages that do the work.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(d Dependencies) (*strictcli.App, error)

New builds the application with every command registered.

func NewHTTPClient

func NewHTTPClient() *http.Client

NewHTTPClient is the HTTP client of the released binary.

Types

type Dependencies

type Dependencies struct {
	// Version is the release version the binary carries.
	Version string
	// HTTPClient sends every HTTP request the commands make: NewHTTPClient
	// in the binary, a fake transport's client in tests.
	HTTPClient *http.Client
}

Dependencies are what the application takes from outside. Every field is required.

Jump to

Keyboard shortcuts

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