cli

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 48 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ExitSuccess        = cliutil.ExitSuccess
	ExitGeneral        = cliutil.ExitGeneral
	ExitUsage          = cliutil.ExitUsage
	ExitConfig         = cliutil.ExitConfig
	ExitConnection     = cliutil.ExitConnection
	ExitTransaction    = cliutil.ExitTransaction
	ExitAuth           = cliutil.ExitAuth
	ExitStore          = cliutil.ExitStore
	ExitPluginNotFound = cliutil.ExitPluginNotFound
)

Variables

View Source
var (
	ExitCode       = cliutil.ExitCode
	ErrUsage       = cliutil.ErrUsage
	ErrConfig      = cliutil.ErrConfig
	ErrConnection  = cliutil.ErrConnection
	ErrTransaction = cliutil.ErrTransaction
	ErrAuth        = cliutil.ErrAuth
)
View Source
var (
	Status   = cliutil.Status
	Statusf  = cliutil.Statusf
	Verbose  = cliutil.Verbose
	Verbosef = cliutil.Verbosef
	Debug    = cliutil.Debug
	Debugf   = cliutil.Debugf
	IsTTY    = cliutil.IsTTY
)
View Source
var (
	Verbosity = cliutil.Verbosity
	IsQuiet   = cliutil.IsQuiet
	IsVerbose = cliutil.IsVerbose
	IsDebug   = cliutil.IsDebug
)

Functions

func Execute

func Execute(root *cobra.Command) error

Execute seeds the SDK client and server context keys on the command context (so that downstream PersistentPreRunE hooks find a non-nil ClientContextKey), then executes the root command.

func NewRootCmd

func NewRootCmd(bi BuildInfo) *cobra.Command

NewRootCmd creates the root cobra command for akt.

func UserFacingError added in v0.0.5

func UserFacingError(err error) string

UserFacingError renders an error for stderr without changing its diagnostic value or exit-code classification.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Commit  string
	Date    string
}

BuildInfo holds build-time metadata injected via ldflags.

type CLIError

type CLIError = cliutil.CLIError

Directories

Path Synopsis
Package console implements the `akt console` CLI commands for the Akash Console managed-wallet API (SPEC §2.9, §7).
Package console implements the `akt console` CLI commands for the Akash Console managed-wallet API (SPEC §2.9, §7).
Package keys implements the `akt context keys` CLI commands for managing cryptographic keys within the context's keyring.
Package keys implements the `akt context keys` CLI commands for managing cryptographic keys within the context's keyring.
Package provider implements the `akt provider` CLI commands for interacting with provider gateway APIs.
Package provider implements the `akt provider` CLI commands for interacting with provider gateway APIs.
Package sdl implements the transport-independent `akt sdl` command group: scaffold listing, SDL generation, and offline validation.
Package sdl implements the transport-independent `akt sdl` command group: scaffold listing, SDL generation, and offline validation.
Package store implements the `akt store` CLI commands for managing the local deployment store.
Package store implements the `akt store` CLI commands for managing the local deployment store.
Package workflow generates CLI commands dynamically from workflow definitions.
Package workflow generates CLI commands dynamically from workflow definitions.

Jump to

Keyboard shortcuts

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