utils

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(question string) bool

func Error

func Error(msg string)

func ErrorAndExit

func ErrorAndExit(msg string)

func GetPath

func GetPath(command string) (string, error)

func Message

func Message(obj any)

func OpenURL

func OpenURL(url string) error

OpenURL opens the specified URL in the default browser of the user.

func RunAndReplace

func RunAndReplace(command string, containerName string)

func RunInteractive

func RunInteractive(command string, containerName string) error

Types

type Enum

type Enum struct {
	Allowed []string
	Value   string
}

func NewEnum

func NewEnum(allowed []string, d string) *Enum

NewEnum give a list of allowed flag parameters, where the second argument is the default

func (*Enum) Set

func (a *Enum) Set(p string) error

func (Enum) String

func (a Enum) String() string

func (*Enum) Type

func (a *Enum) Type() string

Jump to

Keyboard shortcuts

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