cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cp = &cli.Command{
	Name:   "cp",
	Usage:  "simple copy file",
	Action: cmdCp,
}
View Source
var Dirname = &cli.Command{
	Name:   "dirname",
	Usage:  "show the path's directory",
	Action: cmdDirname,
}
View Source
var Exec = &cli.Command{
	Name:   "exec",
	Usage:  "exec a command in specified env, such as extra PATH dir\n",
	Action: cmdExec,
	Flags: []cli.Flag{
		&cli.StringSliceFlag{Name: "env-var", Aliases: []string{"e"}, Usage: "add env var"},
		&cli.StringSliceFlag{Name: "env-path", Aliases: []string{"p"}, Usage: "add extra item to PATH"},
		&cli.StringSliceFlag{Name: "env-path-overwrite", Aliases: []string{"po"}, Usage: "overwrite PATH env var"},
		&cli.StringFlag{Name: "work-dir", Aliases: []string{"wd"}, Usage: "set work dir"},
	},
}
View Source
var Pwd = &cli.Command{
	Name:    "pwd",
	Aliases: []string{"cwd"},
	Usage:   "show current directory",
	Action:  cmdPwd,
}
View Source
var Which = &cli.Command{
	Name:   "which",
	Usage:  "find the excutable in PATH",
	Action: cmdWhich,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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