cloverstd / tcping

ping over a tcp connection
MIT License
803 stars 163 forks source link

add: JSON output, quiet output function #24

Closed DesistDaydream closed 2 years ago

cloverstd commented 2 years ago

JSON output for the CLI is not very useful

DesistDaydream commented 2 years ago

The JSON format will be very useful when we put tcping in the scripts

cloverstd commented 2 years ago

The JSON format will be very useful when we put tcping in the scripts

The text output is easier to parse than JSON output in shell.

It is better to implement the same functionality in another language than to call it in a subprocess.

DesistDaydream commented 2 years ago

TCPING is the output after parsing struct into text. But using struct to output JSON directly is very simple. If you use other programs to process text in the Script, it will be affected by different SHELLs, which may cause abnormal result parsing.