Xray-core/main/commands/base/env.go
HunterQ 030c9efc8c
Commands: Comment some useless codes (#3681)
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
2024-08-15 08:04:09 +00:00

24 lines
469 B
Go

package base
// CommandEnvHolder is a struct holds the environment info of commands
type CommandEnvHolder struct {
// Executable name of current binary
Exec string
// commands column width of current command
CommandsWidth int
}
// CommandEnv holds the environment info of commands
var CommandEnv CommandEnvHolder
func init() {
/*
exec, err := os.Executable()
if err != nil {
return
}
CommandEnv.Exec = path.Base(exec)
*/
CommandEnv.Exec = "xray"
}