Babak K. Shandiz
284880c21e
Fix StatusJSONResponse usage ( #10810 )
...
* Fix `StatusJSONResponse` usage
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Replace `assert` with `require`
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Improve assertion against errors
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Add `JSONErrorResponse` helper func
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Use `httpmock.JSONErrorResponse`
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Replace `StatusJSONResponse` to `JSONErrorResponse` for better readibility
Signed-off-by: Babak K. Shandiz <babakks@github.com>
* Fix improper use of `StatsJSONResponse`
Signed-off-by: Babak K. Shandiz <babakks@github.com>
---------
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-05-01 20:22:43 +01:00
Andy Feller
d2cd14b4cd
Remove out of scope changes, update list commands
...
After discussing this with the team, the `gh config` changes to display `accessible_colors` have been removed from this branch being outside of acceptance criteria. This will be moved to a separate issue along with any other work needed to finalize the public preview such as `gh help` entries for `GH_ACCESSIBLE_COLORS` environment variable.
List commands that use ColorScheme.Gray have been updated to use ColorScheme.Muted.
2025-03-31 11:58:30 -04:00
William Martin
1d38230675
Move config interfaces into gh package ( #9060 )
2024-05-10 10:39:36 +02:00
Sam Coe
5023b61909
Remove uses of FuzzyAgoAbbr in tables ( #8222 )
2023-10-22 17:33:49 +02:00
Heath Stewart
7738b6187c
Add headers to all tables ( #8157 )
2023-10-20 11:20:02 +02:00
Heath Stewart
073ec3426b
Return HTTP errors properly for some commands ( #8037 )
...
* Return HTTP error for `run watch`
Partially fixes #8026
* Return HTTP error for `gpg-key delete`
Partially fixes #8026
2023-09-24 18:22:55 +02:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Roshan Padaki
f797213d38
Allow adding named gpg keys ( #6993 )
2023-02-12 23:43:53 +00:00
Damien Sedgwick
bab1b00c39
Rename --confirm flag to --yes for various destructive commands ( #6915 )
2023-01-26 12:48:21 +01:00
BakaFT
fa2223129b
Warn from gh gpg-key add when key is not armored ( #6528 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-02 16:33:25 +01:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Natthakit Susanthitanon
4265b5b804
Add gpg-key delete command ( #6360 )
2022-10-17 09:07:51 +03:00
Natthakit Susanthitanon
ed9361fc88
Add header to the gpg-key list output ( #6353 )
2022-09-28 08:26:43 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found ( #5479 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00: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
Kevin Lee
0d143ca89c
Consistent punctuation in command usages ( #5139 )
...
* Fix spelling and grammatical errors in command docs
* Add periods for consistency across the long command descriptions
* Format imports
2022-01-31 10:56:12 +00:00
Sam Coe
d3076463aa
Rename gpg-key and ssh-key files to fit golang common practices ( #5074 )
2022-01-21 16:51:16 +02:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Sam Coe
600c387bd2
Address PR comments
2021-09-14 10:56:21 -07:00
Sam Coe
952ebc8eb2
Change to v2 import statements
2021-09-13 14:56:13 -07:00
Sam Coe
7e920a3b66
Add some small UX polish
2021-09-13 14:43:10 -07:00
Owen Voke
d96a773afc
tests: add tests for GPG key commands
2021-06-11 15:55:31 +01:00
Owen Voke
dad2d52571
feat: add commands for managing GPG keys
2021-06-11 15:55:17 +01:00