chore(cli): unhide netcheck command (#8412)

This commit is contained in:
Colin Adler
2023-07-10 21:38:02 -05:00
committed by GitHub
parent d896b74fa2
commit 9df80530d7
7 changed files with 28 additions and 5 deletions

View File

@ -17,9 +17,8 @@ func (r *RootCmd) netcheck() *clibase.Cmd {
client := new(codersdk.Client)
cmd := &clibase.Cmd{
Use: "netcheck",
Short: "Print network debug information for DERP and STUN",
Hidden: true,
Use: "netcheck",
Short: "Print network debug information for DERP and STUN",
Middleware: clibase.Chain(
r.InitClient(client),
),

View File

@ -79,13 +79,14 @@ func (r *RootCmd) Core() []*clibase.Cmd {
r.dotfiles(),
r.login(),
r.logout(),
r.netcheck(),
r.portForward(),
r.publickey(),
r.resetPassword(),
r.state(),
r.templates(),
r.users(),
r.tokens(),
r.users(),
r.version(defaultVersionInfo),
// Workspace Commands
@ -107,7 +108,6 @@ func (r *RootCmd) Core() []*clibase.Cmd {
// Hidden
r.gitssh(),
r.netcheck(),
r.vscodeSSH(),
r.workspaceAgent(),
r.expCmd(),

View File

@ -19,6 +19,7 @@ Coder v0.0.0-devel — A tool for provisioning self-hosted development environme
list List workspaces
login Authenticate with Coder deployment
logout Unauthenticate your local session
netcheck Print network debug information for DERP and STUN
ping Ping a workspace
port-forward Forward ports from machine to a workspace
publickey Output your Coder public key used for Git operations

View File

@ -0,0 +1,6 @@
Usage: coder netcheck
Print network debug information for DERP and STUN
---
Run `coder --help` for a list of global options.