cmdutil

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandMKVMerge    string = "mkvmerge"
	CommandMKVPropEdit string = "mkvpropedit"
	CommandSCP         string = "scp"
	CommandSubsync     string = "subsync"
)

Variables

View Source
var (
	// All possible --output values
	OutputFormats = []string{"json", "text", "yaml"}

	// The selected or default --output value
	OutputFormat string
)

Functions

func AddOutputFlag

func AddOutputFlag(cmd *cobra.Command)

Adds --output to given command

func CallParentPersistentPreRun

func CallParentPersistentPreRun(cmd *cobra.Command, args []string)

Runs ParentPersistentPreRun if defined

func CallParentPersistentPreRunE

func CallParentPersistentPreRunE(cmd *cobra.Command, args []string) error

Runs ParentPersistentPreRunE if defined

func NewListWriter

func NewListWriter() list.Writer

func NewProgressWriter

func NewProgressWriter(out io.Writer, expectedLength int) progress.Writer

func OnlyValidOutputs

func OnlyValidOutputs() error

Checks that value passed to --output is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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