mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2025-12-03 22:55:41 +00:00
24 lines
507 B
PowerShell
24 lines
507 B
PowerShell
# Usage: scoop home <app>
|
|
# Summary: Opens the app homepage
|
|
param($app)
|
|
|
|
. "$PSScriptRoot\..\lib\manifest.ps1" # 'Get-Manifest'
|
|
|
|
if ($app) {
|
|
$null, $manifest, $bucket, $null = Get-Manifest $app
|
|
if ($manifest) {
|
|
if ($manifest.homepage) {
|
|
Start-Process $manifest.homepage
|
|
} else {
|
|
abort "Could not find homepage in manifest for '$app'."
|
|
}
|
|
} else {
|
|
abort "Could not find manifest for '$app'."
|
|
}
|
|
} else {
|
|
my_usage
|
|
exit 1
|
|
}
|
|
|
|
exit 0
|