Commit graph

51 commits

Author SHA1 Message Date
William Martin
49ed6c4681 Use t.Chdir in tests 2025-06-17 11:44:14 +02:00
Kynan Ware
ec4b2dfe1b Assert on err msg directly in ext install tests 2024-12-12 06:38:04 -07:00
Kynan Ware
b2ab7b84f8 Refactor extension executable error handling 2024-12-08 15:55:09 -07:00
bagtoad
4b73e55fd2 Change: exit zero, still print warning to stderr
Instead of returning `ErrExtensionExecutableNotFound` error which causes `gh` to have a non-zero exit code, catch it and print the message to stderr, returning nil. Only print the warning to stderr when there is a TTY.
2024-11-19 16:42:15 -07:00
bagtoad
35aa8521c4 Fix tests for invalid extension name 2024-10-21 12:47:14 -06:00
bagtoad
cc32f33583 Refactor to remove code duplication 2024-10-21 12:37:27 -06:00
bagtoad
6923fb5cc8 add validation for local ext install 2024-10-20 16:37:40 -06:00
leevic31
e3d5c063ef Added summary TTY message to tests 2024-05-16 15:38:49 -04:00
leevic31
a6c0d3b0b3 removed tty message 2024-05-15 15:29:12 -04:00
William Martin
1d38230675
Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
Swastik Baranwal
6696229fb1
gh extension install not give an error if extension already installed and a clear message (#8211)
* `gh extension install` not give an error if extension already installed and a clear message

* remove test

* Add implementation

* lint go.sum

---------

Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-10-19 15:22:21 +02:00
Mislav Marohnić
cb93db2b22
fix tests 2023-06-09 17:56:51 +02:00
Sam Coe
74ee8cacae
Allow creating of nested aliases (#7457) 2023-05-25 09:46:45 +09:00
Heath Stewart
88cae9f5be
Support ext install --force (#7173)
Resolves #7096
2023-03-20 15:58:30 +01:00
Ariel Deitcher
a231b4aded
extension create: make initial commit (#6833) 2023-01-24 17:48:56 +01:00
Des Preston
23913ac371
Show version diff when updating a single extension (#6647) 2022-12-08 14:40:41 +00:00
vilmibm
036e16608f Merge remote-tracking branch 'origin/trunk' into gh-ext-search 2022-11-08 12:40:21 -08:00
vilmibm
4bc623591f gh ext browse 2022-11-08 10:51:20 -08:00
vilmibm
869248fc53 review feedback 2022-11-07 15:05:35 -08:00
vilmibm
4a2c5f222a add gh ext search 2022-11-04 15:21:12 -07:00
Ariel Deitcher
abb8c86ee8
mntly/extension not found (#6425)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-14 15:27:15 +02:00
vilmibm
2d093c1741 add test helpers 2022-08-15 13:53:43 -05:00
vilmibm
f7d5c5f725 move prompter to own package 2022-07-26 16:41:13 -05:00
vilmibm
4afb567d06 WIP: survey wrapper 2022-07-26 14:39:38 -05:00
Heath Stewart
00e97121ec
Allow passing full extension name (#5464) 2022-05-18 08:35:47 +02: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
Sam Coe
2c0236d096
Add extension upgrade --dry-run (#5098) 2022-04-12 07:18:08 +00:00
Nate Smith
c1e5934b21
Merge pull request #5272 from meiji163/pin-ext 2022-03-29 09:21:20 -05:00
Jimmy Keith
ce8f66b421
Have extension upgrade --all be non-fatal when no extensions installed (#5356) 2022-03-29 16:15:25 +02:00
meiji163
45845bc999 cant pin local 2022-03-22 11:02:16 -07:00
meiji163
619774d460 fix tests 2022-03-07 17:50:38 -08:00
Seito Tanaka
6f66a1d265
Add version to extension list command (#5219)
* Add version to extension list command

* Trim sha only when displaying
2022-03-07 07:14:26 +00:00
Mislav Marohnić
e43cb2b880 Port more legacy stubs to the new ask stubber 2022-01-14 19:34:15 +01:00
tison
0d3dd7e758
extension upgrade: do not consider up-to-date to be a failure (#4857)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-12-16 12:59:22 +01:00
vilmibm
6950c6ee32 binary extension create
- add a wizard to gh extension create
- add --precompiled-go
- add --precompiled-other
- build out scaffolding for both types of binary extensions
2021-11-23 16:53:45 -06:00
Sam Coe
defbf0f306
Make extension upgrade output more friendly 2021-10-12 16:47:19 -07:00
Sam Coe
ed3427974c
Use concurrency to check for extension updates 2021-10-12 09:44:41 -07:00
vilmibm
db5bbf799f use manager io in Upgrade 2021-09-28 13:03:00 -05:00
vilmibm
514d4d992c refactor dependencies of ext manager 2021-09-21 15:55:31 -05:00
vilmibm
af7805af53 WIP refactoring 2021-09-20 16:46:54 -05:00
vilmibm
b00e8a5681 more accurately check for binary extension 2021-09-20 16:02:20 -05:00
vilmibm
eeca998640 binary extension support in gh extension install 2021-09-15 18:46:17 -05:00
Mislav Marohnić
11fbb60ae7 Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
Sam
25b150ad6e
Merge pull request #4159 from cli/ext-create
Add extension create command
2021-08-23 10:44:54 -07:00
Sam Coe
7f0e09c13f
Move link to next line since it is long 2021-08-19 16:18:59 -07:00
Sam Coe
232ad2a67c
Fix up link 2021-08-19 13:41:26 -07:00
Sam Coe
e9f7459ce2
Add extension create command 2021-08-19 13:30:34 -07:00
Mislav Marohnić
1881de6d41 Allow fully qualified extension name as argument to upgrade, remove 2021-08-19 20:01:18 +02:00
Mislav Marohnić
ac6c859ca0 Print "Upgrade available" instead of "Update available"
This is because we have an `upgrade` command, not `update` command.
2021-08-12 15:40:46 +02:00