dependencies

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Yellow = "\033[33m"
)

Variables

View Source
var TestDepsCmd = &Z.Cmd{
	Name:     `test`,
	Aliases:  []string{"dependencies"},
	Usage:    `lazywal test`,
	Summary:  `Test to see if all dependencies are available in your system.`,
	NumArgs:  0,
	Commands: []*Z.Cmd{help.Cmd},
	Call: func(_ *Z.Cmd, args ...string) error {
		remainingDeps, ready := CheckReady()
		if ready {
			fmt.Println("All dependencies installed")
			return nil
		}
		fmt.Println("Lazywal won't run.")
		return fmt.Errorf("%sDependencies not found in your system: %s%s%s", Yellow, Red, remainingDeps, Reset)
	},
}

Functions

func CheckReady

func CheckReady() (string, bool)

func IsWalAvailable

func IsWalAvailable() (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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