1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 01:40:44 +00:00
v2fly/common
Jebbs ebbf31f07e
improve commands (#648)
* stat show json refactor
> will show {} since scripts should expect it, its the json style of blank value

* combine statistics commands to one

* code optimize

* fix runtime flag

* remove json indent

* change overridden to override

* api bi -json

* convert stdin support
code optimize

* writeRow() code optimize
add stats tittle
revert back to restartlogger

* api log -restart

* follow log

* codeql

* move -json to shared flags

* flags optimize
* update flag descriptions
* change "-v" of "api bo" to duration
* change "-expire" of "tls cert" to days

* cmds short description optimize

* fix multiple log followers

* Format loader refactor
* "infra/conf/merge" refactor
* "LoadConfig" refactor
* add "infra/conf/mergers"
    * contribute to it will benifit `v2ray run`,`v2ray test`,`v2ray convert`
    * easily add new formats, by just adding a converter like json.FromTOML
* default format auto, to all cmds above
    * auto detect input format
    * mixed formats support
* better stdin behavior
    * don't wait if no content
    * don't use 'stdin:' placeholder
* `v2ray test` now behaves exactly the same with `v2ray run`, including stdin reading

* api ado, adi, rmo, rmi refactor
* support folders to files resolving, mixed formats
* remove remaining 'stdin:' placeholders

* fix tests
* os.Stdin.Stat() behaves different in platforms, removed

* code optimize

Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-02-21 23:02:42 +08:00
..
antireplay Refactor common/antireplay, unexport unnecessary public fields. (#422) 2020-11-17 21:05:26 +08:00
bitmask Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
buf Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
bytespool Fix lint according to golangci-lint (#439) 2020-11-22 05:05:01 +08:00
cache Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
cmdarg improve commands (#648) 2021-02-21 23:02:42 +08:00
crypto Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
dice Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
errors Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
log improve commands (#648) 2021-02-21 23:02:42 +08:00
mux Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
net Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
peer function to compare byte array 2018-07-12 23:38:10 +02:00
platform Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
protocol Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
retry Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
serial Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
session Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
signal Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
strmatcher Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
task Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
units improve commands (#648) 2021-02-21 23:02:42 +08:00
uuid Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
common_test.go Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
common.go Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
errors.generated.go Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
interfaces.go Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
type_test.go Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
type.go cleanup error messages 2017-04-09 15:04:04 +02:00