cli

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfirm

func CheckConfirm(cmd *cobra.Command) error

CheckConfirm validates confirmation for destructive operations

func GetPackageName

func GetPackageName() string

GetPackageName returns the package name from flag, env, or config

func GetProfile

func GetProfile() string

GetProfile returns the profile name from flag, env, or config

func GetTimeout

func GetTimeout() string

GetTimeout returns the timeout duration string

func IsDryRun

func IsDryRun() bool

IsDryRun returns whether dry-run mode is enabled

func MustMarkFlagRequired added in v0.5.6

func MustMarkFlagRequired(cmd *cobra.Command, name string)

MustMarkFlagRequired marks a flag as required during command initialization.

func MustMarkPersistentFlagRequired added in v0.5.6

func MustMarkPersistentFlagRequired(cmd *cobra.Command, name string)

MustMarkPersistentFlagRequired marks a persistent flag as required during command initialization.

func RequirePackage

func RequirePackage(cmd *cobra.Command) error

RequirePackage validates package name is set

func ResolveTimeout added in v0.5.4

func ResolveTimeout(fallback time.Duration) time.Duration

ResolveTimeout returns an explicit user timeout when present, otherwise fallback.

func SetDryRun

func SetDryRun(d bool)

SetDryRun sets the dry-run mode

func SetPackageName

func SetPackageName(p string)

SetPackageName sets the package name from the flag

func SetProfile

func SetProfile(p string)

SetProfile sets the profile from the flag

func SetTimeout

func SetTimeout(t string)

SetTimeout sets the timeout from the flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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