commands

package
v0.0.0-...-47f9fdf Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package commands implements the CLI command structure using Cobra.

Index

Constants

View Source
const (
	ExitSuccess    = 0
	ExitValidation = 1
	ExitProvider   = 2
	ExitNetwork    = 3
)

Exit codes

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func GetConfig

func GetConfig() *config.Config

GetConfig returns the loaded configuration.

func GetModel

func GetModel() string

GetModel returns the effective model ID (flag or config default).

func GetProvider

func GetProvider() string

GetProvider returns the effective provider ID (flag or config default).

func IsJSONOutput

func IsJSONOutput() bool

IsJSONOutput returns true if JSON output is enabled.

func IsVerbose

func IsVerbose() bool

IsVerbose returns true if verbose output is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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