Commands: Add convert with two sub-commands#3661
Merged
Conversation
Member
|
应用场景是? |
Member
处理API的一些输出 |
Contributor
Author
第一条 pb 子命令是看到 cmd 原来就有这些代码,顺带改了下。以前是有些低内存的路由器,在启动时如果有 routing 配置会因为解释 routing 引起内存不足,导致启动失败。现在不知道还有没有这个需要。 第二条 json 子命令和 #3644 有关。可以解开 grpcurl 里面的 TypedMessage。以后的 API 也许 可以直接传个 TypedMessage。 |
Member
|
感谢! |
leninalive
pushed a commit
to amnezia-vpn/amnezia-xray-core
that referenced
this pull request
Oct 29, 2024
* 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 <[email protected]>
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
* 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 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这个 PR 添加两个 convert 子命令
第一个,把 configs 转成 protobuf:
第二个,把 typedMessage 解成 json:
其中第二个的效果: