Documentation ¶
Index ¶
- Constants
- Variables
- func AddOutputFlag(cmd *cobra.Command)
- func CallParentPersistentPreRun(cmd *cobra.Command, args []string)
- func CallParentPersistentPreRunE(cmd *cobra.Command, args []string) error
- func GetMKVMergeProgress(str string) (percentage int, err error)
- func GetRsyncProgress(str string) (percentage int, err error)
- func GetSubsyncProgress(str string) (percentage int, points int, err error)
- func NewListWriter() list.Writer
- func NewProgressWriter(out io.Writer, expectedLength int) progress.Writer
- func OnlyValidOutputs() error
- type Command
Constants ¶
View Source
const ( CommandMKVMerge string = "mkvmerge" CommandMKVPropEdit string = "mkvpropedit" CommandRsync string = "rsync" CommandSubsync string = "subsync" )
Variables ¶
View Source
var ( // Whether debug mode is enabled or not. DebugMode bool // Maximum number of concurrent goroutines. MaxConcurrentGoroutines int // All possible --output values. OutputFormats = []string{"json", "text", "yaml"} // Selected or default --output value. OutputFormat string )
Functions ¶
func CallParentPersistentPreRun ¶
Runs ParentPersistentPreRun if defined.
func CallParentPersistentPreRunE ¶
Runs ParentPersistentPreRunE if defined.
func GetMKVMergeProgress ¶
func GetRsyncProgress ¶
func GetSubsyncProgress ¶
func NewListWriter ¶
func OnlyValidOutputs ¶
func OnlyValidOutputs() error
Checks that value passed to --output is valid.
Types ¶
Click to show internal directories.
Click to hide internal directories.