mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-30 21:26:33 -05:00
7c1ab06206
* remove v2ctl, wv2ray * remove v2ctl, wv2ray build scripts * remove infra/control/main * remove !confonly flag * remove ctlcmd package * remove Confgi.Override func * move commands package into main
22 lines
343 B
Go
22 lines
343 B
Go
package all
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"v2ray.com/core/common/uuid"
|
|
"v2ray.com/core/main/commands/base"
|
|
)
|
|
|
|
var cmdUUID = &base.Command{
|
|
UsageLine: "{{.Exec}} uuid",
|
|
Short: "Generate new UUIDs",
|
|
Long: `Generate new UUIDs.
|
|
`,
|
|
Run: executeUUID,
|
|
}
|
|
|
|
func executeUUID(cmd *base.Command, args []string) {
|
|
u := uuid.New()
|
|
fmt.Println(u.String())
|
|
}
|