cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TO_YAML = false
	DEFAULT_TO_SSH  = false
	DEFAULT_TO_JSON = false
	DEFAULT_SRC     = ""
	DEFAULT_DEST    = ""
	DEFAULT_HELP    = false
)
View Source
const Usage = `` /* 173-byte string literal not displayed */

Variables

This section is empty.

Functions

func CheckConvertArgvValid

func CheckConvertArgvValid(args Args) (result bool, desc string)

func CheckIOArgvValid

func CheckIOArgvValid(args Args) (result bool, desc string)

func CheckUseStdin

func CheckUseStdin(osStdinStat func() (fs.FileInfo, error)) bool

func ResetFlags

func ResetFlags()

func ShowHelp

func ShowHelp()

Types

type Args

type Args struct {
	ToYAML   bool
	ToSSH    bool
	ToJSON   bool
	Src      string
	Dest     string
	ShowHelp bool
}

func ParseArgs

func ParseArgs() Args

Jump to

Keyboard shortcuts

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