cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvFilePath = flag.String("file", "", "env file path")
	DelEnv      = flag.Bool("d", false, "delete env")
	SetSystem   = flag.Bool("sys", false, "set system env")
	StartWith   = flag.String("startWith", "", "line start with")
	AddPath     = flag.String("add", "", "add path")
	RemovePath  = flag.String("rm", "", "remove path from PATH")
	CleanPath   = flag.Bool("clean", false, "clean PATH (dedupe + remove invalid)")
	CheckPath   = flag.Bool("check", false, "check PATH for invalid directories")
	FixPath     = flag.Bool("fix", false, "auto-remove invalid paths (use with -check)")
	Yes         = flag.Bool("y", false, "skip confirmation prompts")
	ListEnv     = flag.Bool("list", false, "list all env vars")
	GetEnv      = flag.String("get", "", "get env var value")
	ShowPath    = flag.Bool("path", false, "display PATH")
	ExportPath  = flag.String("export", "", "export env vars to file (sh/bat/json)")
	BackupPath  = flag.String("backup", "", "backup env vars to JSON file")
	RestorePath = flag.String("restore", "", "restore env vars from backup file")
	Search      = flag.String("search", "", "search env vars by keyword")
)

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