cmdutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInteractive

func IsInteractive() bool

IsInteractive returns true if stdin is a terminal (interactive mode)

func NeedsMissingArg

func NeedsMissingArg(args []string, required int) bool

NeedsMissingArg returns true if we need to prompt for a missing argument

func RequireArgs

func RequireArgs(n int, argNames string) cobra.PositionalArgs

RequireArgs returns an Args validator that allows missing args for interactive mode When args are missing and we're in an interactive terminal, it returns nil so the command can handle interactive input in RunE

Types

This section is empty.

Jump to

Keyboard shortcuts

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