feat(cli): add coder open vscode (#11191)

Fixes #7667
This commit is contained in:
Mathias Fredriksson
2024-01-02 20:46:18 +02:00
committed by GitHub
parent 099be249a7
commit df3c310379
26 changed files with 1123 additions and 292 deletions
+1
View File
@@ -26,6 +26,7 @@ SUBCOMMANDS:
login Authenticate with Coder deployment
logout Unauthenticate your local session
netcheck Print network debug information for DERP and STUN
open Open a workspace
ping Ping a workspace
port-forward Forward ports from a workspace to the local machine. For
reverse port forwarding, use "coder ssh -R".
+12
View File
@@ -0,0 +1,12 @@
coder v0.0.0-devel
USAGE:
coder open
Open a workspace
SUBCOMMANDS:
vscode Open a workspace in VS Code Desktop
———
Run `coder --help` for a list of global options.
+16
View File
@@ -0,0 +1,16 @@
coder v0.0.0-devel
USAGE:
coder open vscode [flags] <workspace> [<directory in workspace>]
Open a workspace in VS Code Desktop
OPTIONS:
--generate-token bool, $CODER_OPEN_VSCODE_GENERATE_TOKEN
Generate an auth token and include it in the vscode:// URI. This is
for automagical configuration of VS Code Desktop and not needed if
already configured. This flag does not need to be specified when
running this command on a local machine unless automatic open fails.
———
Run `coder --help` for a list of global options.