mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-10-04 19:18:26 +00:00
26 lines
579 B
PowerShell
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
|