GitHub Action
be5923770b
Add vscs-target to gh cs list
2022-03-10 16:42:31 -06:00
Josh Spicer
4d5ce7aa56
Adds internal codespace developer flags ( #5287 )
2022-03-09 15:59:29 +00:00
Bernardo
fc55e01d86
fix progress indicator bug
2022-03-05 01:48:11 +00:00
Bernardo
75c6c2c877
fix scoping bug
2022-03-04 23:07:24 +00:00
Bernardo
9616706984
review suggestion
2022-03-04 22:30:50 +00:00
JP Ungaretti
fba5fb4eec
Refactor liveshare setup to a new function
2022-03-04 00:54:15 +00:00
Patrick Veverka
cd8d653285
Merge pull request #5211 from cli/edit_codspaces
...
Allow Editing Codespaces
2022-03-03 18:22:01 -05:00
Mark Phelps
625f3ac144
Updates wording for codespaces accept permissions flow
2022-03-03 15:36:53 -05:00
Bernardo
7656943c31
review suggestions
2022-03-03 18:40:00 +00:00
JP Ungaretti
aea8a0e021
Clean up code
2022-03-03 01:32:12 +00:00
Bernardo
383a711902
fix linter error
2022-03-02 17:59:46 +00:00
Patrick Veverka
edfaac23da
updates from review
2022-03-02 13:17:57 +00:00
JP Ungaretti
9e3b955163
Add cs jupyter
2022-03-01 22:38:35 +00:00
Nate Smith
91c4a5d828
Merge pull request #5234 from markphelps/codespaces-accept-perms
...
Codespaces Create: Allow Accepting Permissions
2022-02-28 16:54:45 -06:00
Jose Garcia
2328ccb881
Abstract port notification logic into liveshare
2022-02-28 07:56:37 -05:00
Mark Phelps
dd5feda00a
Update wording after consulting product
2022-02-25 17:32:08 -05:00
Jose Garcia
3847d965da
Refactor port update data into liveshare
2022-02-25 08:09:12 -05:00
Mark Phelps
71f32376d0
Fix tests
2022-02-22 20:20:52 -05:00
Mark Phelps
707220a9b1
PR updates
2022-02-22 14:16:03 -05:00
Mark Phelps
1ea26f33d8
Add create test
2022-02-22 09:50:43 -05:00
Jose Garcia
9556c72ecf
Update event types and drop idea of global request
2022-02-17 17:05:56 -05:00
Mark Phelps
e7c2f973ae
Support opting out of permissions
2022-02-17 15:11:12 -05:00
Christian Gregg
c5dbf20ed4
Alias list as ls for all commands ( #5214 )
...
I always get tripped up whenever trying to list my codespaces, adding
`ls` as an alias to `list` feels natural enough.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-02-17 13:53:42 +01:00
Jose Garcia
ee349700de
Checkin almost final impl but wrong direction
2022-02-16 17:56:09 -05:00
Bernardo
ca14d10b7b
add failure tests
2022-02-16 03:10:47 +00:00
Mark Phelps
590acaa1d6
WIP
2022-02-15 19:35:53 -05:00
Patrick Veverka
e3ff873d64
since we can change the machine name, we should probably allow them to list it
2022-02-16 00:00:13 +00:00
Jose Garcia
c96807fae7
Clean up cruft
2022-02-15 15:34:04 -05:00
Jose Garcia
c90da9799d
Tests for update port visibility
2022-02-15 15:30:06 -05:00
Patrick Veverka
0635514ddf
first stab
...
wip
move to method param
flushing out
2022-02-15 20:13:30 +00:00
Jose Garcia
04a4e43dec
Initial spike with request/event handling
2022-02-14 17:22:58 -05:00
Patrick Veverka
f6f8ba8b7b
Add display name for codespaces ( #5044 )
2022-02-09 16:15:03 +01:00
Caleb Brose
eeeb73a3e3
Repo name suggestions for cs create ( #5108 )
...
Co-authored-by: Alan Donovan <alan@alandonovan.net>
2022-01-31 10:20:49 +00:00
Jeff Hubbard
71d6e61a5b
Rename test
2022-01-21 14:28:17 -08:00
Jeff Hubbard
5cee9e16f3
Add interactive prompt to choose from list of available devcontainer files
2022-01-21 14:11:52 -08:00
Jeff Hubbard
e7f888ad1d
Add devcontainer_path API param as an option
2022-01-21 10:20:15 -08:00
Jason Lunz
61e5fbb007
Revert "move gh cs ssh --config into a separate gh cs ssh config command"
...
This reverts commit c9d0085e57 .
2022-01-06 10:03:54 -07:00
Mislav Marohnić
3b7e5fc246
Store Executable() information on codespaces App
...
This is to avoid having to explicitly pass it to each subcommand that
needs it. Each codespaces command runs in the context of App, so that's
a point of shared context that we can store state in.
2021-12-21 14:03:10 +01:00
Jason Lunz
38eb894d73
prevent leaking any blocked goroutines on error
2021-12-20 13:57:53 -07:00
Jason Lunz
932c9da473
clean up inadvertently truncated help message
2021-12-20 13:57:53 -07:00
Jason Lunz
7bd6fe9af8
maximize the time checkAuthorizedKeys has to run concurrently
...
Also, other than that, restore the original ordering of this function
2021-12-20 13:57:53 -07:00
Jason Lunz
a864985f0a
use WaitGroup for a more idiomatic concurrency pattern
2021-12-20 13:57:53 -07:00
Jason Lunz
81b34d272c
inline openSSHSession
2021-12-20 13:57:53 -07:00
Jason Lunz
28dd73ffdf
always pass a non-nil logger to openSSHSession
2021-12-20 13:57:53 -07:00
Jason Lunz
37f8039f76
merge ensureAuthorizedKeys into checkAuthorizedKeys
2021-12-20 13:57:52 -07:00
Jason Lunz
ae3aacb964
fix errcheck linter warning
2021-12-20 13:57:52 -07:00
Jason Lunz
6b34fa2a27
oh look, struct definitions can be scoped!
2021-12-20 13:57:52 -07:00
Jason Lunz
f22be4a03d
use a more robust method to get the executable path
...
cmdutil.Factory.Executable() accounts for things like package managers
and symlinks to the actual executable.
An alternative to passing the *cmdutil.Factory down the stack would be
stashing the executable string in the codespace.App, which works (and
the diff is smaller), but it produced some odd non-local test failures.
This way seems less mysterious and more like other uses of Factory in
the codebase.
2021-12-20 13:57:52 -07:00
Jason Lunz
7b432de5c2
use heredoc helper for config template
2021-12-17 17:09:06 -07:00
Jason Lunz
b2598d64f9
start codespace to fetch config if it's explicitly requested
...
When running `gh cs ssh config` without a `-c` option, we skip
codespaces that aren't available. This change suppresses that behavior
when a single codespace is explicitly requested, starting the codespace
if it's not running.
2021-12-17 17:08:58 -07:00