utils

package
v0.0.0-...-b068e01 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red    = "\u001b[91m"
	Green  = "\u001b[32m"
	Blue   = "\u001b[94m"
	Yellow = "\u001b[33m"
	Purple = "\u001b[35m"
	End    = "\u001b[0m"
	Bold   = "\u001b[1m"
	UnderL = "\u001b[4m"
)

Variables

This section is empty.

Functions

func ExecuteCmd

func ExecuteCmd(cmd string, args []string)

func Must

func Must(err error)

func ParseArgs

func ParseArgs(f string, a interface{})

func SetEnv

func SetEnv(k, v string)

Types

type Env

type Env map[string]string

type LArg

type LArg map[string]interface{}

type SArg

type SArg map[string]interface{}

type ToolArgs

type ToolArgs struct {
	Tool    string `yaml:"tool,omitempty"`
	Long    []LArg `yaml:"long,omitempty""`
	Short   []SArg `yaml:"short,omitempty""`
	EnvVars []Env  `yaml:"env,omitempty""`
}

Jump to

Keyboard shortcuts

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