Commands: Add convert with two sub-commands (#3661)
* 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>
This commit is contained in:
1 parent
85e2ebc6f7
commit
f650d87083
5 files changed
+171
-127
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user