cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package cli builds cover100's command tree.

Each verb lives in its own file. This file wires the root command, the fleet-standard fang front-end, and the process exit-code convention.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error)

Fatal prints err and exits with the code it carries, defaulting to 1 for an error that carries none.

func NewRootCmd

func NewRootCmd(assets fs.FS) (*cobra.Command, []fang.Option)

NewRootCmd builds the root command and the fang options it must be executed with. Callers MUST pass the returned options into fang.Execute alongside the command, so the version flag and version subcommand stay in agreement.

func Run

func Run(args []string, assets fs.FS) error

Run executes cover100 with the given arguments (including argv[0]) and returns the error the caller should turn into an exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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