cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version  = "0.10"
	BuildTag = "unset"
	BuildSHA = "unset"
)

Functions

func Execute

func Execute() error

Types

type Command

type Command struct {
	Match  string `json:"match" toml:"match"`
	Cmd    string `json:"cmd" toml:"cmd"`
	Silent bool   `json:"silent" toml:"silent"`
}

type Config

type Config struct {
	SaveAndRun []SaveAndRun `json:"sar" toml:"sar"`
}

type ConfigFileType

type ConfigFileType int
const (
	TOML ConfigFileType = iota
	JSON
	OTHER
)

type Options

type Options struct {
	Match bool
	Debug bool
	// contains filtered or unexported fields
}

type SaveAndRun

type SaveAndRun struct {
	Base          string    `json:"base" toml:"base"`
	Commands      []Command `json:"commands" toml:"commands"`
	IgnoreFolders []string  `json:"ignore" toml:"ignore"`
	Hidden        bool      `json:"hidden" toml:"hidden"`
}

Jump to

Keyboard shortcuts

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