Joe Previte
8daba6ca80
feat: add home as a cli option
2020-12-14 16:23:35 -07:00
Anmol Sethi
affb92f281
cli: Show beta flags in help output
...
Looks like
```
-r --reuse-window Force to open a file or folder in an already opened window.
-vvv --verbose Enable verbose logging.
--link (beta) Securely bind code-server via Coder Cloud with the passed name. You'll get a URL like
https://myname.coder-cloud.com at which you can easily access your code-server instance.
Authorization is done via GitHub.
```
Based on commits by @JammSpread in #2405
Closes #2396
2020-12-08 19:00:33 -05:00
Anmol Sethi
6c693000eb
Merge pull request #2405 from JammSpread/master
...
Modify --link arg and README (Cdr Cloud)
2020-12-08 18:30:34 -05:00
SPGoding
1dd7e4b4e1
Add hashedPassword config ( #2409 )
...
Resolve #2225 .
2020-12-08 14:54:17 -06:00
JK
4d295e3195
Modify link arg and its desc to not be beta
2020-12-05 01:23:48 +00:00
Anmol Sethi
cc18175ce3
cli: Add --disable-update-check flag
...
Closes #2361
2020-11-30 15:30:06 -05:00
Asher
e1702a1d21
Merge branch master into code-asher/ch1385
2020-11-12 11:52:02 -06:00
Asher
75b93f9dc5
Fix bind address priority
...
Broke when converting to a loop.
2020-11-04 17:07:24 -06:00
Asher
3a074fd844
Skip unnecessary auth type check when using --link
2020-11-03 14:30:34 -06:00
Asher
8a9e61defb
Use Addr interface everywhere and loop over arg sources
2020-11-03 14:28:49 -06:00
Anmol Sethi
bae28727bd
src/node/cli.ts: Add --cert-host to configure generated certificate hostname
2020-10-30 13:36:53 -04:00
Asher
8e93e28162
Strip config file password from debug log
2020-10-20 16:18:28 -05:00
Asher
2928d362fa
Move heart and AuthType out of http
...
This file is going to get blasted in favor of Express.
2020-10-20 16:18:24 -05:00
Asher
dcb303a437
Move argument defaults into setDefaults
2020-10-20 16:15:13 -05:00
Asher
466a04f874
Remove pointless use of openInFlagCount
...
It'll always be zero here.
2020-10-09 16:57:45 -05:00
Asher
e0769dc13a
Move config file info log
...
Otherwise it outputs when trying to open a file in an existing instance
externally. Externally there isn't an environment variable to branch on
to skip this line so instead output it with the other info lines in the
child process.
2020-10-09 16:57:44 -05:00
Asher
fe19391c03
Read most recent socket path from file
2020-10-09 16:57:43 -05:00
Asher
021c084e43
Move log level defaults into setDefaults
...
This will allow cliArgs to be only the actual arguments the user passed
which will be used for some logic around opening in existing instances.
2020-10-09 16:57:42 -05:00
Asher
1902296702
Remove references to --open-in flag
2020-10-09 16:57:41 -05:00
Asher
0a8e71c647
Refactor wrapper
...
- Immediately create ipcMain so it doesn't have to be a function which I
think feels cleaner.
- Move exit handling to a separate function to compensate (otherwise
the VS Code CLI for example won't be able to exit on its own).
- New isChild prop that is clearer than checking for parentPid (IMO).
- Skip all the checks that aren't necessary for the child process (like
--help, --version, etc).
- Since we check if we're the child in entry go ahead and move the
wrap code into entry as well since that's basically what it does.
- Use a single catch at the end of the entry.
- Split out the VS Code CLI and existing instance code into separate
functions.
2020-10-09 16:57:40 -05:00
Anmol Sethi
d67bd3f604
cloud: Rename --coder-bind to --link
2020-10-09 12:57:20 -04:00
Anmol Sethi
a5b6d080bd
Add CS_BETA and note --coder-bind is in beta
2020-10-09 07:50:51 -04:00
Anmol Sethi
f5489cd3a0
Hide -coder-bind for now
2020-10-09 07:38:38 -04:00
Anmol Sethi
df3089f3ad
coder-cloud: Use consolidated bind command
2020-10-07 17:40:19 -04:00
Anmol Sethi
c4f1c053bf
Show valid values for --auth in --help
...
See https://github.com/nhooyr/code-server/pull/1/files#r485847134
2020-10-07 15:58:30 -04:00
Anmol Sethi
1c16814a89
Update coder-bind docs
2020-10-07 15:58:30 -04:00
Anmol Sethi
c3c24fe4d2
Fixes for @ammarb
2020-10-07 15:58:30 -04:00
Anmol Sethi
22c4a7e10f
Make linking and starting code-server to the cloud a single command
2020-10-07 15:58:30 -04:00
Anmol Sethi
0aa98279d6
Fixes for CI
2020-10-07 15:58:30 -04:00
Anmol Sethi
916e24e109
Add support for multiline descriptions
2020-10-07 15:58:30 -04:00
Anmol Sethi
c7c62daa67
Remove unused code in optionDescriptions
2020-10-07 15:58:30 -04:00
Anmol Sethi
579bb94a6c
Add coder cloud expose command
2020-10-07 15:58:30 -04:00
Asher
8b5deac92b
Fix 80 getting dropped from bind-addr
2020-09-30 11:57:23 -05:00
Asher
ce8577b1c3
Remove open-in flag ( #2013 )
2020-08-27 15:04:37 -05:00
shayne
ceb2265b14
Allow opening files, folders, and workspaces in existing code-server from CLI ( #1994 )
...
Add initial support for opening files / folders in running code-server instance.
Current limitations:
- unable to open a file in a new window, only folders
- unable to use addMode feature
- others...
2020-08-27 13:06:21 -05:00
Anmol Sethi
864a9e7bd6
Merge pull request #1999 from cdr/update
...
Update dependencies in package.json
2020-08-27 13:17:18 -04:00
Asher
eebb8bb314
Add proposed API flag ( #2002 )
...
Co-authored-by: giddyuptiger <65830808+giddyuptiger@users.noreply.github.com>
2020-08-26 14:18:40 -05:00
Anmol Sethi
c8f63b61c4
Fix fmt and lint
2020-08-26 14:21:37 -04:00
Asher
3c90b1e327
Merge pull request #1969 from cdr/qol
...
qol changes
2020-08-17 14:17:29 -05:00
Asher
0dcf469725
Add @version information to --help
...
This mimics a recent change in VS Code's help. See #1965 .
2020-08-13 18:08:35 -05:00
Asher
150d37868a
Enforce strict equals
2020-08-13 17:11:33 -05:00
Anmol Sethi
85ad7e4fb4
Remove duplicate log
...
Also confirmed that #1750 is fixed.
2020-06-03 15:45:17 -04:00
Anmol Sethi
8053ec6872
Allow user-data-dir and extension-dir in config.yaml
...
Closes #1676
2020-05-19 00:41:27 -04:00
Anmol Sethi
73b2ff0945
$PORT should always override port in --bind-addr
2020-05-14 22:33:12 -04:00
Anmol Sethi
c69346a9a7
Add FAQ entry on the config file
2020-05-14 18:35:35 -04:00
Anmol Sethi
5651201643
Copy old macOS data directory if applicable
2020-05-14 06:12:33 -04:00
Anmol Sethi
d6ea9d78f6
Configuration file bug fixes based on @code-asher's review
2020-05-12 19:59:54 -04:00
Anmol Sethi
e02d94ad2f
Allow password authentication in the config file
2020-05-12 19:59:54 -04:00
Anmol Sethi
4f67f4e096
Disable automatic updates
2020-05-12 19:59:54 -04:00
Anmol Sethi
00d164b67f
Add default config file and improve config/data directory detection
2020-05-12 19:59:54 -04:00
Anmol Sethi
c5179c2a06
Add support for a YAML config file
2020-05-12 19:59:53 -04:00
Asher
a2b69c8f3f
Fix inconsistencies in log flags and env var
...
- Fix priority to match the commented behavior.
- Ignore bogus LOG_LEVEL values.
2020-04-28 17:57:55 -05:00
Anmol Sethi
a96606e589
Fix mention of host/port in docs
2020-04-28 18:29:25 -04:00
Anmol Sethi
af28885ea6
Deprecate --host and --port in favour of --bind-addr
2020-04-28 14:19:24 -04:00
Anmol Sethi
d0d5461a67
Remove SSH server
...
Closes #1502
2020-04-27 09:27:45 -04:00
Asher
13534fa0c0
Add proxy-domain flag
...
This will be used for proxying ports.
2020-04-02 13:40:14 -05:00
Asher
ce637d318d
Add descriptions to SSH flags
2020-03-30 17:43:08 -05:00
Will O'Beirne
3463d56114
SSH server & endpoint
2020-03-16 15:14:53 -05:00
Asher
a00fa85d77
Qualify extensions in help output as VS Code extensions
...
Also add a description for uninstall-extension and force.
2020-03-13 13:23:30 -05:00
Asher
57de78e12a
Add show-versions flag and add help for list-extensions
...
Closes #1417 .
2020-03-13 13:17:59 -05:00
Asher
1f6ff2f763
Show --install-extension in help menu
...
Also add --force so extensions can be updated without prompts.
Closes #1392 .
2020-03-05 10:42:49 -06:00
Anmol Sethi
3a2644a2bc
Fix vscode.sh
2020-02-20 18:36:38 -05:00
Asher
288e794c99
Update locale file location
...
Should make language packs work again.
2020-02-20 12:52:23 -06:00
Asher
0e2eaa9b34
Add valid values for --log
2020-02-19 11:11:29 -06:00
Asher
0263188431
Handle --long=value format in the cli parser
2020-02-19 10:54:23 -06:00
Asher
46d6e17508
Prepare for release
...
- Add VS Code icon
- Trim dashboard to just display dedicated VS Code section
- Version was getting unset during build
- Add back nbin shim which I temporarily took out earlier
- Update tests for log level env var changes
2020-02-18 17:31:23 -06:00
Asher
f6b092b12d
Merge branch 'restructure'
2020-02-18 13:30:37 -06:00
Asher
39a57700bc
Enable access to vscode cli
2020-02-18 12:24:12 -06:00
Anmol Sethi
1a54f6b7ef
Merge remote-tracking branch 'origin/restructure' into anmol-restructure
2020-02-18 12:52:29 -05:00
Anmol Sethi
4aa15401c3
Format and lint
2020-02-14 20:00:19 -05:00
Asher
db54f78e8e
Implement automatic updates
2020-02-14 15:58:39 -06:00
Asher
256419004d
Implement cli parser
2020-02-07 14:43:08 -06:00
Asher
63f3c04c57
Move user data directory logic out of patch
2020-02-06 13:12:00 -06:00
Asher
8a0f1d846e
Move start path logic out of patch and fix it
2020-02-06 12:29:38 -06:00
Asher
b29346ecdf
Implement new structure
2020-02-04 14:31:44 -06:00
Asher
e14362f322
Pass along Node options
2019-11-14 17:20:23 -06:00
Asher
af71203955
Fix relaunching during an update
2019-11-01 10:51:23 -05:00
Asher
87485948ad
Kill inner process if parent process dies
...
Fixes #1076 .
2019-10-29 14:43:27 -05:00
Asher
e22964915a
Support opening workspaces from command line
...
Partly addresses #1121 .
2019-10-28 16:25:51 -05:00
Asher
422503ef98
Proxy child exit code when exiting parent process
...
This fixes code-server exiting with zero on errors.
2019-10-28 14:57:01 -05:00
Asher
58f7f5b769
Properly fix blank --cert flag
...
See #1109 .
2019-10-25 12:04:43 -05:00
Asher
b8e6369fbe
Fix empty --cert not generating self-signed certificate
...
Fixes #1101 .
2019-10-25 11:01:42 -05:00
Asher
e7945bea94
Enable password authentication by default
...
Fixes #1062 .
2019-10-24 12:35:26 -05:00
Asher
bdd11f741b
Update to 1.39.2
...
Also too the opportunity to rewrite the build script since there was a
change in the build steps (mainly how the product JSON is inserted) and
to get the build changes out of the patch. It also no longer relies on
external caching (we'll want to do this within CI instead).
2019-10-18 18:20:02 -05:00
Asher
56ce780522
Prevent process.exit()
2019-10-11 17:00:17 -05:00
Asher
548d095611
Add support for running extensions in the browser
2019-10-04 18:14:19 -05:00