cmd

package
v0.0.0-...-19e8dd2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) (bool, error)

Exists returns a bool and an error that states whether the given file/directory exists or not

func Parse

func Parse() (int, error)

Parse parses all the flags defined by the Setup function

func PrintUsage

func PrintUsage(err error)

func Setup

func Setup()

Setup defines all the allowed flags

Types

type ConfigType

type ConfigType struct {
	Command       *string
	Directory     *string
	Ignore        *string
	IgnoreFile    *string
	Hidden        *bool
	Clear         *bool
	RunDelay      *time.Duration
	RunCmdOnStart *bool
	ListOnStart   *bool
	Limit         *uint64

	ToIgnore []string
	CmdParts []string
}
var Config ConfigType = ConfigType{
	ToIgnore: []string{},
}

Jump to

Keyboard shortcuts

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