Files
Scoop/libexec/scoop-home.ps1
T

26 lines
579 B
PowerShell

# Usage: scoop home <app>
# Summary: Opens the app homepage
param($app)
. "$psscriptroot\..\lib\core.ps1"
. "$psscriptroot\..\lib\help.ps1"
. "$psscriptroot\..\lib\manifest.ps1"
. "$psscriptroot\..\lib\buckets.ps1"
reset_aliases
if($app) {
$manifest, $bucket = find_manifest $app
if($manifest) {
if([string]::isnullorempty($manifest.homepage)) {
abort "Could not find homepage in manifest for '$app'."
}
start $manifest.homepage
}
else {
abort "Could not find manifest for '$app'."
}
} else { my_usage }
exit 0