cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package cli wires the cobra command tree. Commands return errors up to Execute, which renders them exactly once through internal/output and maps them to the process exit code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

Execute runs the CLI and returns the process exit code. SIGINT/SIGTERM cancel the command context, surfacing as ExitCancelled; any error is rendered exactly once via output.RenderError.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds the positronick root command with its persistent flags and all registered subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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