cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

CheckErr checks nil.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Exists

func Exists(path string) bool

Exists checks path.

func GetInput

func GetInput() string

GetInput scans input string.

Types

type ArgDefaults

type ArgDefaults struct {
	IsM4A               bool
	IsMP4               bool
	IsAvailable         bool
	IsSelect            bool
	IsSelectEachFormat  bool
	IsFindFromAvailable bool
	OutputTitle         string
	IsPlaylist          bool
}

ArgDefaults is struct.

type CommandUtility

type CommandUtility struct {
	CmdName string
	Option  string
	Arg     string
	Command *exec.Cmd
	EnvCmd  envCommand
}

CommandUtility is struct.

type Youtube

type Youtube struct {
	URL string
}

Youtube ...

Jump to

Keyboard shortcuts

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