options

package
v0.0.0-...-1950331 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Force             = false
	Simulate          = false
	Sort              = "none"
	Verbose           = false
	IgnoreDirectories = false
	NoIndex           = false
	NoMove            = false
	NoExt             = false
	NoMkdir           = false
	Soft              = false
	AllowedSortValues = []string{"none", "alphabet", "reverse-alphabet", "date", "reverse-date", "size", "reverse-size"}
)

Default Values

Functions

This section is empty.

Types

type CommonOptions

type CommonOptions struct {
	Force             bool
	Simulate          bool
	Sort              string
	Verbose           bool
	IgnoreDirectories bool
	NoIndex           bool
	NoExt             bool
	NoMkdir           bool
}

func GetCommonOptions

func GetCommonOptions(cmd *cobra.Command) CommonOptions

type LinkOptions

type LinkOptions struct {
	CommonOptions
	Soft bool
}

func GetLinkOptions

func GetLinkOptions(cmd *cobra.Command) LinkOptions

type MoveOptions

type MoveOptions struct {
	CommonOptions
	NoMove bool
}

func GetMoveOptions

func GetMoveOptions(cmd *cobra.Command) MoveOptions

Jump to

Keyboard shortcuts

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