Repository navigation
Closed
Labels
enhancementa request to improve CLIa request to improve CLI
Description
Describe the feature or problem you’d like to solve
Currently, gh has a Scoop manifest available, but is essentially kept within its own "repository". This makes it less discoverable, as most scoop users use scoop search ... to find installable packages.
Proposed solution
Modify gh.json to support autoupdate and publish to either https://github.com/ScoopInstaller/Main/ or https://github.com/lukesampson/scoop-extras. This will make the manifest self-updating (official buckets use Appveyor for that), keeping up with the most recent (not pre-) release.
This also removes the need to keep the current gh.json file.
I have tested the following manifest, feel free to use it.
{
"description": "GitHub CLI",
"homepage": "https://cli.github.com/",
"license": "MIT",
"version": "0.6.2",
"architecture": {
"32bit": {
"url": "https://github.com/cli/cli/releases/download/v0.6.2/gh_0.6.2_windows_386.zip",
"hash": "bb1903b9f6ebddaffc56a1b9945c30025432f28742977ee2aa11c2bd38110373"
},
"64bit": {
"url": "https://github.com/cli/cli/releases/download/v0.6.2/gh_0.6.2_windows_amd64.zip",
"hash": "089ec177fc2813a2ca01d4b3ba56cbdc4cb089e3fb30ab2a159ec2afdd421c61"
}
},
"bin": "bin/gh.exe",
"checkver": {
"github": "https://github.com/cli/cli"
},
"autoupdate": {
"architecture": {
"32bit": {
"url": "https://github.com/cli/cli/releases/download/v$version/gh_$version_windows_386.zip"
},
"64bit": {
"url": "https://github.com/cli/cli/releases/download/v$version/gh_$version_windows_amd64.zip"
}
}
}
}
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLI
Activity
JanPokorny commentedon Mar 21, 2020
Additionally, it is possible for the Scoop manifest to support automatically adding
gh completion -s powershellto the PowerShell profile -- similarly how pshazz does it:pshazz manifest: https://github.com/ScoopInstaller/Main/blob/master/bucket/pshazz.json
pshazz install script: https://github.com/lukesampson/pshazz/blob/master/bin/install.ps1
linsui commentedon Mar 22, 2020
ScoopInstaller/Main#841
JanPokorny commentedon Mar 22, 2020
@linsui Thanks, didn't think to look into open PRs. Hope this issue helps developers to notice this and give the awaited feedback.
JanPokorny commentedon Apr 17, 2020
Implemented by ScoopInstaller/Main#841.
ghis now available in the main (default) bucket, and thus is simply installable byscoop install gh. Now only README.md needs to be updated -- created PR #797mislav commentedon May 8, 2020
gh is now listed in scoop central repository, so I believe this can be closed.