Skip to content

Commit

Permalink
Added scoop-home command
Browse files Browse the repository at this point in the history
`scoop home <app>` opens the homepage for the given app
  • Loading branch information
deevus committed Mar 28, 2015
1 parent cfb516c commit fe92dd7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions libexec/scoop-home.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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"

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

0 comments on commit fe92dd7

Please sign in to comment.