cli/pkg/cmd/codespace
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
..
code.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
code_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
codespace_selector.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
codespace_selector_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
common.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
common_test.go Fix typo in has_uncommitted_changes for codespaces (#6812) 2023-01-05 22:02:32 +00:00
create.go Teach gh cs create to use current repo as default (#6596) 2023-02-07 20:05:38 +00:00
create_test.go Codespaces create: Fix missing billable owner notice for individuals (#6891) 2023-01-23 13:15:44 +01:00
delete.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
delete_test.go Teach gh cs create to use current repo as default (#6596) 2023-02-07 20:05:38 +00:00
edit.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
edit_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
jupyter.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
list.go linter 2022-12-12 21:21:23 +00:00
list_test.go Codespaces list by repo (#5854) 2022-06-28 13:34:04 +00:00
logs.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
logs_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
mock_api.go Default to authenticated user on codespace delete (#6944) 2023-02-07 20:46:08 +01:00
mock_prompter.go Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
ports.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
ports_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
rebuild.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
rebuild_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
root.go Add rebuild command 2022-10-08 06:12:36 +00:00
select.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
select_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
ssh.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
ssh_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
stop.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
stop_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00