mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
v1.0.0
This commit is contained in:
16
main/commands/base/root.go
Normal file
16
main/commands/base/root.go
Normal file
@ -0,0 +1,16 @@
|
||||
package base
|
||||
|
||||
// RootCommand is the root command of all commands
|
||||
var RootCommand *Command
|
||||
|
||||
func init() {
|
||||
RootCommand = &Command{
|
||||
UsageLine: CommandEnv.Exec,
|
||||
Long: "The root command",
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterCommand register a command to RootCommand
|
||||
func RegisterCommand(cmd *Command) {
|
||||
RootCommand.Commands = append(RootCommand.Commands, cmd)
|
||||
}
|
Reference in New Issue
Block a user