constraints

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommand

func CheckCommand(command string, subcommand []string) (bool, string)

func CheckConstraints

func CheckConstraints(options ...Option) error

CheckConstraints checks if the constraints are met

func GetOSRelease

func GetOSRelease(configfile string) (map[string]string, error)

func IsCI

func IsCI() bool

IsCI checks if the current environment is a CI environment

func IsInteractiveTerminal

func IsInteractiveTerminal() bool

IsInteractiveTerminal checks if the current terminal is interactive

func SupportsANSIEscapeCodes

func SupportsANSIEscapeCodes() bool

SupportsANSIEscapeCodes checks if the terminal supports ANSI escape codes

Types

type Option

type Option func(*constraints)

func WithAWSCLI added in v0.6.0

func WithAWSCLI() Option

WithAWSCLI checks if the AWS CLI is installed

func WithAWSProfile

func WithAWSProfile() Option

func WithAWSRegion

func WithAWSRegion() Option

func WithAtunStructure

func WithAtunStructure() Option

func WithConfigFile

func WithConfigFile() Option

func WithENV

func WithENV() Option

func WithHostConfig

func WithHostConfig() Option

func WithNVM

func WithNVM() Option

func WithNodeJS added in v0.6.0

func WithNodeJS() Option

func WithRouterHostID added in v0.6.0

func WithRouterHostID() Option

func WithSSMPlugin

func WithSSMPlugin() Option

Jump to

Keyboard shortcuts

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