Commit graph

32 commits

Author SHA1 Message Date
petercover
bad7098cfe chore: fix some comments
Signed-off-by: petercover <raowanxiang@outlook.com>
2025-01-23 00:47:27 +08:00
Caleb Brose
509a181d79
Remove unimplemented tests 2024-11-06 19:10:28 +00:00
Caleb Brose
940560acf2
Fix ssh directory 2024-11-06 16:13:29 +00:00
Caleb Brose
b4c221dfb7
Create the automatic key when specified with -i 2024-11-05 22:30:15 +00:00
Caleb Brose
57c73e8239
Add --repo filter to more gh codespaces commands (#6669)
* Add --repo flag to commands

* Example of using common args

* Add -r to stop

* Add validation to the add helper

* Skip prompt for single option

* Migrate (mostly) everything to addGetOrChooseCodespaceCommandArgs

* Fix typo in logsCmd

* Use R instead of r

* Update a couple -r usages

* Refactor to codespace_selector

* Clean up selector, apply it in a couple examples

* Use apiClient instead in constructor

* Restore addDeprecatedRepoShorthand

* Finish implementing the commands

* Update existing tests to use the selector

* Add tests for selector

* linter

* Catch case where there's no conflict

* Make the flag persistent for ports

* Add support to stop
2023-02-22 17:16:36 -06:00
Robin Neatherway
78fb90956c
Teach gh cs create to use current repo as default (#6596)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-02-07 20:05:38 +00:00
Sam Coe
6dbe7e6342
Linter fixes (#6722)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-12-12 15:27:32 +00:00
Caleb Brose
cc98ffd6fa Ensure local keys don't interfere with ssh_test 2022-09-21 19:43:31 +00:00
Caleb Brose
373634ad75 Rename to generateAutomaticSSHKeys 2022-09-20 18:32:00 +00:00
Caleb Brose
049a3676f4 Use filepath instead of path 2022-09-20 15:59:38 +00:00
Caleb Brose
3b52df6f99 Don't add private key for -i 2022-09-20 15:21:59 +00:00
Caleb Brose
dba1259d32 Update tests 2022-09-20 01:02:06 +00:00
Caleb Brose
d8b06ae8af Add check to -i short circuit for the automatic key 2022-08-16 10:15:43 -05:00
Caleb Brose
d410830f7f Handle comment in local ssh key 2022-08-09 11:11:11 -05:00
Caleb Brose
cb914c1873 Cleanup extra param, array declaration 2022-08-09 10:16:24 -05:00
Caleb Brose
0d9b2bf4ce SHort circuit api check if auto keys exist 2022-08-05 18:24:36 +00:00
Caleb Brose
5212fc8d5b Error handling 2022-08-03 15:26:00 +00:00
Caleb Brose
b6c469518f Linter 2022-08-02 21:53:17 +00:00
Caleb Brose
894b553b78 Add a couple more scenarios 2022-08-02 21:39:33 +00:00
Caleb Brose
d3d72dd820 Add test for hasUploadedPublicKeyForConfig 2022-08-02 21:37:02 +00:00
Caleb Brose
88b28c5228 Fix api mock 2022-08-02 20:57:52 +00:00
cmbrose
b2fe329011 Close files to actually fix windows 2022-06-29 12:28:21 -05:00
Caleb Brose
4eac4fbf4c Make a new dir per test to work around windows failures 2022-06-29 11:48:23 -05:00
Caleb Brose
b5348f661e Handle case of partial name match 2022-06-29 11:36:27 -05:00
Caleb Brose
1aa457499d Use Fatal instead to avoid nil-ref 2022-06-29 11:27:18 -05:00
Caleb Brose
fb4ad53dd0 Check MkdirAll error 2022-06-29 11:17:24 -05:00
Caleb Brose
c5b07762d1 Check the key paths too 2022-06-29 10:51:17 -05:00
Caleb Brose
19b5400811 Handle back compat 2022-06-29 10:46:44 -05:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
Charlie Andrews
64eecef176 Remove unhelpful error wrapper 2022-03-16 09:36:14 -04:00
Charlie Andrews
8bf0cb8f13 Refactor the getOrChooseCodespace to always check for pending ops 2022-03-16 08:56:17 -04:00
Charlie Andrews
27a5512b41 Add test for disallowing ssh when codespace has a pending op 2022-03-15 17:27:38 -04:00