Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9df8053

Browse files
authored
chore(cli): unhidenetcheck command (#8412)
1 parentd896b74 commit9df8053

File tree

7 files changed

+28
-5
lines changed

7 files changed

+28
-5
lines changed

‎cli/netcheck.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ func (r *RootCmd) netcheck() *clibase.Cmd {
1717
client:=new(codersdk.Client)
1818

1919
cmd:=&clibase.Cmd{
20-
Use:"netcheck",
21-
Short:"Print network debug information for DERP and STUN",
22-
Hidden:true,
20+
Use:"netcheck",
21+
Short:"Print network debug information for DERP and STUN",
2322
Middleware:clibase.Chain(
2423
r.InitClient(client),
2524
),

‎cli/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,14 @@ func (r *RootCmd) Core() []*clibase.Cmd {
7979
r.dotfiles(),
8080
r.login(),
8181
r.logout(),
82+
r.netcheck(),
8283
r.portForward(),
8384
r.publickey(),
8485
r.resetPassword(),
8586
r.state(),
8687
r.templates(),
87-
r.users(),
8888
r.tokens(),
89+
r.users(),
8990
r.version(defaultVersionInfo),
9091

9192
// Workspace Commands
@@ -107,7 +108,6 @@ func (r *RootCmd) Core() []*clibase.Cmd {
107108

108109
// Hidden
109110
r.gitssh(),
110-
r.netcheck(),
111111
r.vscodeSSH(),
112112
r.workspaceAgent(),
113113
r.expCmd(),

‎cli/testdata/coder_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Coder v0.0.0-devel — A tool for provisioning self-hosted development environme
1919
list List workspaces
2020
login Authenticate with Coder deployment
2121
logout Unauthenticate your local session
22+
netcheck Print network debug information for DERP and STUN
2223
ping Ping a workspace
2324
port-forward Forward ports from machine to a workspace
2425
publickey Output your Coder public key used for Git operations
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Usage: coder netcheck
2+
3+
Print network debug information for DERP and STUN
4+
5+
---
6+
Run `coder --help` for a list of global options.

‎docs/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Coder — A tool for provisioning self-hosted development environments with Terr
3535
|[<code>list</code>](./cli/list.md)| List workspaces|
3636
|[<code>login</code>](./cli/login.md)| Authenticate with Coder deployment|
3737
|[<code>logout</code>](./cli/logout.md)| Unauthenticate your local session|
38+
|[<code>netcheck</code>](./cli/netcheck.md)| Print network debug information for DERP and STUN|
3839
|[<code>ping</code>](./cli/ping.md)| Ping a workspace|
3940
|[<code>port-forward</code>](./cli/port-forward.md)| Forward ports from machine to a workspace|
4041
|[<code>provisionerd</code>](./cli/provisionerd.md)| Manage provisioner daemons|

‎docs/cli/netcheck.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- DO NOT EDIT | GENERATED CONTENT-->
2+
3+
#netcheck
4+
5+
Print network debug information for DERP and STUN
6+
7+
##Usage
8+
9+
```console
10+
coder netcheck
11+
```

‎docs/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,11 @@
592592
"description":"Unauthenticate your local session",
593593
"path":"cli/logout.md"
594594
},
595+
{
596+
"title":"netcheck",
597+
"description":"Print network debug information for DERP and STUN",
598+
"path":"cli/netcheck.md"
599+
},
595600
{
596601
"title":"ping",
597602
"description":"Ping a workspace",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp