v5: Remove v2ctl & wv2ray (rebased from 7c1ab06206)

This commit is contained in:
Jebbs
2021-09-04 11:09:55 +01:00
committed by Shelikhoo
parent 557b0c3353
commit b05a469488
139 changed files with 100 additions and 773 deletions
+25
View File
@@ -0,0 +1,25 @@
package base
import (
"os"
"path"
)
// CommandEnvHolder is a struct holds the environment info of commands
type CommandEnvHolder struct {
// Excutable 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)
}