commands

package
v0.0.0-...-5fe554b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USAGE            = "\u001b[32mUSAGE\u001b[0m"
	SUBCOMMANDS      = "\u001b[32mSUBCOMMANDS\u001b[0m"
	OPTIONS          = "\u001b[32mOPTIONS\u001b[0m"
	DESCRIPTION      = "\u001b[32mDESCRIPTION\u001b[0m"
	DEFAULT_RENDERER = "high-res"
)

Variables

View Source
var (
	VidExts []string = []string{"mp4", "mov", "avi", "gif"}
	ImgExts []string = []string{"bmp", "dib", "jpeg", "jpg", "jpe", "jp2", "png", "pbm", "pgm", "ppm", "sr", "ras", "tiff", "tif"}
)
View Source
var CommandMap = make(map[string]Command)

Functions

func CheckExt

func CheckExt(fileExt string, exts []string) bool

func Run

func Run(args []string) error

Types

type Command

type Command interface {
	Description() string
	FlagSet() *flag.FlagSet
	Run(args []string) error
}

func DetermineSubcommand

func DetermineSubcommand(args []string) (Command, error)

Jump to

Keyboard shortcuts

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