config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile

func CreateConfigFile() error

CreateConfigFile creates a config file in the current directory with default data.

func GetGlobMatches

func GetGlobMatches(c *Config) ([]string, error)

GetGlobMatches returns glob matches from a Config.

Types

type Cmd

type Cmd struct {
	Terms []string
	// Milliseconds
	DelayToKill int
	FatalIfErr  bool
}

Cmd is a command from a config file.

type Config

type Config struct {
	Cmds        []Cmd
	IgnoreGlobs []string
}

Config is the data from a config file.

func GetConfig

func GetConfig() (*Config, error)

GetConfig returns the data from the config file.

Jump to

Keyboard shortcuts

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