Added command to print out URL and homepage.
This commit is contained in:
parent
7c98ee9644
commit
6e557798e8
13
lib/spack/spack/cmd/info.py
Normal file
13
lib/spack/spack/cmd/info.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import spack
|
||||||
|
import spack.packages as packages
|
||||||
|
|
||||||
|
description = "Build and install packages"
|
||||||
|
|
||||||
|
def setup_parser(subparser):
|
||||||
|
subparser.add_argument('name', metavar="PACKAGE", help="name of packages to get info on")
|
||||||
|
|
||||||
|
|
||||||
|
def info(parser, args):
|
||||||
|
package = packages.get(args.name)
|
||||||
|
print "Homepage: ", package.homepage
|
||||||
|
print "Download: ", package.url
|
Loading…
Reference in New Issue
Block a user