sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

Multiple config files support

Open qjebbs opened this issue 3 years ago • 4 comments

The PR ports Multiple config files support to sing-box, and takes advice from #164.

sing-box run -c inbound.json -c outbound.json
sing-box run -r -c config_dir

qjebbs avatar Oct 18 '22 05:10 qjebbs

Who defines .jsonc?

nekohasekai avatar Oct 18 '22 05:10 nekohasekai

Here with in the VSCode, I have to change the extension to .jsonc to enable the comments, or it will alert. So I take it as a convention.

image

qjebbs avatar Oct 18 '22 05:10 qjebbs

But as to the PR, it allows comment even if the extenstion is .json

qjebbs avatar Oct 18 '22 05:10 qjebbs

100.0% test coverage for qjebbs/go-jsons:

$ make test
ok      github.com/qjebbs/go-jsons      0.641s  coverage: 100.0% of statements
ok      github.com/qjebbs/go-jsons/merge        0.360s  coverage: 100.0% of statements

qjebbs avatar Oct 21 '22 03:10 qjebbs

Sorry the branch is deleted accidentally when I tried to rename the branch.

If you want it any time, contact me to recreate the PR or find it at: https://github.com/qjebbs/sing-box/branches

qjebbs avatar Nov 04 '22 04:11 qjebbs