Documentation
¶
Index ¶
- func CheckConfirm(cmd *cobra.Command) error
- func GetPackageName() string
- func GetProfile() string
- func GetTimeout() string
- func IsDryRun() bool
- func MustMarkFlagRequired(cmd *cobra.Command, name string)
- func MustMarkPersistentFlagRequired(cmd *cobra.Command, name string)
- func RequirePackage(cmd *cobra.Command) error
- func ResolveTimeout(fallback time.Duration) time.Duration
- func SetDryRun(d bool)
- func SetPackageName(p string)
- func SetProfile(p string)
- func SetTimeout(t string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfirm ¶
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 MustMarkFlagRequired ¶ added in v0.5.6
MustMarkFlagRequired marks a flag as required during command initialization.
func MustMarkPersistentFlagRequired ¶ added in v0.5.6
MustMarkPersistentFlagRequired marks a persistent flag as required during command initialization.
func RequirePackage ¶
RequirePackage validates package name is set
func ResolveTimeout ¶ added in v0.5.4
ResolveTimeout returns an explicit user timeout when present, otherwise fallback.
func SetPackageName ¶
func SetPackageName(p string)
SetPackageName sets the package name from the flag
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.