This repository was archived by the owner on Aug 30, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork18
feat: Add Ping command to monitor workspace latency#409
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
15 commits Select commitHold shift + click to select a range
c7254ca
feat: Add Ping command to monitor workspace latency
kylecarbse27f728
Handle shut off with nice error
kylecarbsc1b4948
Organize funcs
kylecarbs24f0de2
Add docs
kylecarbs976eaef
Organize imports
kylecarbse0c271c
Move to subdommand of workspaces
kylecarbs4d9cd9c
Refactor to be smarter
kylecarbs75894f9
Enable scheme filtering
kylecarbs2294b0f
Add count flag
kylecarbs1c6d9d6
Fix import order
kylecarbsb8010ed
Disable linting for nested if
kylecarbsbc1096e
Generate docs
kylecarbs8eb3b84
Extract funcs
kylecarbsfcf1dc0
Update docs
kylecarbsb1a8083
Remove receiver
kylecarbsFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsdocs/coder_workspaces.md
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
36 changes: 36 additions & 0 deletionsdocs/coder_workspaces_ping.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## coder workspaces ping | ||
ping Coder workspaces by name | ||
### Synopsis | ||
ping Coder workspaces by name | ||
``` | ||
coder workspaces ping <workspace_name> [flags] | ||
``` | ||
### Examples | ||
``` | ||
coder workspaces ping front-end-workspace | ||
``` | ||
### Options | ||
``` | ||
-c, --count int stop after <count> replies | ||
-h, --help help for ping | ||
-s, --scheme strings customize schemes to filter ice servers (default [stun,stuns,turn,turns]) | ||
``` | ||
### Options inherited from parent commands | ||
``` | ||
-v, --verbose show verbose output | ||
``` | ||
### SEE ALSO | ||
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces | ||
26 changes: 13 additions & 13 deletionsinternal/cmd/cmd.go
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
220 changes: 214 additions & 6 deletionsinternal/cmd/workspaces.go
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
5 changes: 5 additions & 0 deletionswsnet/dial.go
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
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.