feat(cli): make minor improvements to speedtest (#6266)

- Remove mostly redundant "Transferred" column
- Rename "Bandwidth" to "Throughput"
- Replace "--reverse" (which has an ambiguous starting state) with "--direction=(up|down)"
- Tolerate AgentStartErrors which may be caused by failing startup
  script
This commit is contained in:
Ammar Bandukwala
2023-02-22 13:09:37 -06:00
committed by GitHub
parent 6149905a83
commit 8231de94ca
3 changed files with 27 additions and 22 deletions

View File

@ -9,10 +9,10 @@ coder speedtest <workspace> [flags]
### Options
```
-d, --direct Specifies whether to wait for a direct connection before testing speed.
-h, --help help for speedtest
-r, --reverse Specifies whether to run in reverse mode where the client receives and the server sends.
-t, --time duration Specifies the duration to monitor traffic. (default 5s)
-d, --direct Specifies whether to wait for a direct connection before testing speed.
--direction string Specifies whether to run in reverse mode where the client receives and the server sends. (up|down) (default "down")
-h, --help help for speedtest
-t, --time duration Specifies the duration to monitor traffic. (default 5s)
```
### Options inherited from parent commands