mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
469 B
24 lines
469 B
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"
|
|
}
|