cmd

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func GetRootCmd

func GetRootCmd() *cobra.Command

GetRootCmd returns the root command for testing

func GlobalExitCodeForTesting

func GlobalExitCodeForTesting() int

GlobalExitCodeForTesting reports the exit code recorded by the most recent command execution. It exists so external test packages can verify the JSON-vs-human exit-code contract that handleError implements.

func NewRootCmdForTesting

func NewRootCmdForTesting() *cobra.Command

NewRootCmdForTesting creates a fresh root command instance for testing This avoids state contamination between tests by creating new command instances

func ResetGlobalExitCodeForTesting

func ResetGlobalExitCodeForTesting()

ResetGlobalExitCodeForTesting clears the recorded exit code. External tests call it before each command execution so a value left by a prior run cannot leak into the assertion.

Types

This section is empty.

Directories

Path Synopsis
groups
subaccounts/apikeys
Package apikeys implements the nested `subaccounts api-keys` command group.
Package apikeys implements the nested `subaccounts api-keys` command group.

Jump to

Keyboard shortcuts

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