cook

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue    = "\u001b[38;5;45m"
	Grey    = "\u001b[38;5;252m"
	Red     = "\u001b[38;5;42m"
	White   = "\u001b[38;5;255m"
	Reset   = "\u001b[0m"
	Reverse = "\u001b[7m"
)

These are messed up, something is something else

View Source
var (
	Help       = false
	Verbose    = false
	ConfigPath = ""
	UpperCase  = false
	LowerCase  = false
)
View Source
var ConfigFolder string
View Source
var ConfigInfo string
View Source
var IngredientsFolder = "ingredients"
View Source
var InputFile = make(map[string]bool)
View Source
var M = make(map[string]map[string][]string)

Functions

func AddFilesToArray

func AddFilesToArray(value string, array *[]string)

func CheckFileCache

func CheckFileCache(filename string, files []string)

Checking if file's cache present

func CheckYaml

func CheckYaml(p string, array *[]string) bool

func CookConfig

func CookConfig()

func FileRegex

func FileRegex(file string, expresssion string, array *[]string)

func FileValues

func FileValues(pattern string, array *[]string)

func FindRegex

func FindRegex(data []byte, expresssion string, array *[]string)

func GetData

func GetData(url string) []byte

Return data from url

func ParseFile

func ParseFile(param string, value string, array *[]string) bool

func ParseFunc

func ParseFunc(value string, array *[]string) bool

Checking for functions

func ParsePorts

func ParsePorts(ports []string, array *[]string)

func ParseRanges

func ParseRanges(p string, array *[]string) bool

func PipeInput

func PipeInput(value string, array *[]string) bool

func PrintFunc

func PrintFunc(k string, v []string, search string)

func RawFileRegex

func RawFileRegex(files []string, expresssion string, array *[]string)

func RawFileValues

func RawFileValues(pattern string, allLines map[string]bool)

func RawInput

func RawInput(value string, array *[]string) bool

func ReadFile

func ReadFile(filepath string) []byte

func ReadInfoYaml

func ReadInfoYaml(filepath string, m map[string][]string)

func ReadYaml

func ReadYaml(filename string, m map[string]map[string][]string)

func UpdateCache

func UpdateCache()

func UpdateDb

func UpdateDb()

Updating cook's database

func VPrint

func VPrint(msg string)

func WriteFile

func WriteFile(filepath string, data []byte)

func WriteYaml

func WriteYaml(filepath string, m interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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