mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-25 01:51:28 +00:00
f650d87083
* Add back convert-configs-to-protobuf command. * Add convert-typedMessage-to-json command. * Add -debug and -type arguments into convert.pb sub-command. --------- Co-authored-by: nobody <nobody@nowhere.mars>
18 lines
337 B
Go
18 lines
337 B
Go
package convert
|
|
|
|
import (
|
|
"github.com/xtls/xray-core/main/commands/base"
|
|
)
|
|
|
|
// CmdConvert do config convertion
|
|
var CmdConvert = &base.Command{
|
|
UsageLine: "{{.Exec}} convert",
|
|
Short: "Convert configs",
|
|
Long: `{{.Exec}} {{.LongName}} provides tools to convert config.
|
|
`,
|
|
Commands: []*base.Command{
|
|
cmdProtobuf,
|
|
cmdJson,
|
|
},
|
|
}
|