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
Mislav Marohnić
ae0b93575e
Add support for installing binary extensions on M1 Macs
...
If the extension publishes an amd64 binary and Rosetta is available,
use that binary as it will most likely work.
If the extension publishes an arm64 binary, make sure to codesign it
after downloading so that the OS allows its execution.
2022-04-13 20:01:18 +02:00
Roshan Padaki
8f046e0b77
gh extensions list: Don't error if no extensions installed (#5445 )
2022-04-13 07:31:24 +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
8174640cda
install tests
2022-03-07 19:47:21 -08:00
meiji163
65bc3acaa5
merge upstream
2022-03-07 17:58:48 -08:00
meiji163
aad291a3b8
Merge branch 'tmp' into pin-ext
2022-03-07 17:53:42 -08:00
meiji163
619774d460
fix tests
2022-03-07 17:50:38 -08:00
meiji163
bed630452b
list pinned exts
2022-03-07 17:49:04 -08:00
meiji163
db53df102c
pinning script exts
2022-03-07 17:02:22 -08:00
meiji163
d7277e396c
pinning binary exts
2022-03-07 17:02:22 -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
meiji163
f350b917e4
fix tests
2022-03-03 22:10:35 -08:00
meiji163
bdab7de1d2
list pinned exts
2022-03-02 21:06:23 -08:00
meiji163
44334bbec6
pinning script exts
2022-03-02 19:25:25 -08:00
meiji163
15bca56fd2
Merge branch 'cli:trunk' into pin-ext
2022-03-01 15:02:03 -08:00
meiji163
fe5eca1dd5
pinning binary exts
2022-03-01 15:01:04 -08: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
nate smith
c32bf6387e
update wording for extensions that cannot be installed
2022-01-19 11:44:05 -06:00
Nate Smith
4b415f80d7
Merge pull request #5022 from cli/config-defaults
...
add GetOrDefault and related methods to Config
2022-01-17 10:44:28 -06:00
Mislav Marohnić
e43cb2b880
Port more legacy stubs to the new ask stubber
2022-01-14 19:34:15 +01:00
nate smith
562f1b3d0d
add GetOrDefault functionality to config
2022-01-11 14:56:58 -06: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
Mislav Marohnić
d02f184bd1
go fmt
2021-12-02 16:12:24 +01:00
Mislav Marohnić
a65b9a3831
💅 simplify filesystem operations while creating extensions
...
- doing mkdir before `git init <dir>` is not necessary; git will
create the directory if it doesn't exist
- passing both `-C` and `--git-dir` is not needed for git invocations
- reading the current working directory isn't necessary for specifying
nested paths to operate in
- use `git add .` instead of explicitly naming all paths; we generate a
gitignore for binaries that we want to avoid adding
- generate cross-platform gitignore for Go binary extensions
- add helpers to simplify writing files, tests
2021-11-24 13:46:36 +01:00
Mislav Marohnić
e506910a08
Add newlines to generated files
2021-11-24 11:59:00 +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
nate smith
54b82dd072
Migrate to binary style extensions when detected
2021-11-17 13:15:04 -06:00
nate smith
3bc4f4f5dd
oops
2021-11-12 15:26:15 -06:00
nate smith
59d651b5ea
xplatform test fix
2021-11-12 15:17:21 -06:00
nate smith
6b7889be6e
fix binary extensions on windows
2021-11-12 14:29:56 -06:00
nate smith
a20ea17147
print success for installing extension
2021-11-12 12:29:53 -06:00
Alan Donovan
2f7f224c9e
Merge pull request #4584 from cli/FlagErrorf
...
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 14:14:05 -04:00
nate smith
f65c1537dc
review feedback
2021-10-21 11:58:25 -05:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
nate smith
c696416a11
add test
2021-10-19 14:52:14 -05:00
nate smith
42ce8faafa
dispatch binary extensions directly
2021-10-19 14:25:33 -05: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
Sam Coe
8f5806d61f
Set io when initializing extension manager
2021-10-05 09:10:49 -07:00
vilmibm
7efd06b87d
rename function
2021-09-29 13:43:37 -05:00
vilmibm
a2e7eaf808
test update available for binary ext in list
2021-09-29 13:39:00 -05:00
vilmibm
ef08712354
test list
2021-09-28 19:27:21 -05:00
vilmibm
3971df4f93
switch to stubBinaryExtension
2021-09-28 19:23:28 -05:00