Skip to content
Snippets Groups Projects
Commit 8fb38931 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

update downloads command

parent bc4d20de
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,13 @@ Fetch the default downloads:
$ mhcflurry-downloads fetch
Fetch a specific download:
$ mhcflurry-downloads fetch data_kim2014
$ mhcflurry-downloads fetch models_class1_pan
Get the path to a download:
$ mhcflurry-downloads path data_kim2014
$ mhcflurry-downloads path models_class1_pan
Get the URL of a download:
$ mhcflurry-downloads url models_class1_pan
Summarize available and fetched downloads:
$ mhcflurry-downloads info
......@@ -314,10 +317,16 @@ def info_subcommand(args):
def path_subcommand(args):
"""
Print the local path to a download
"""
print(get_path(args.download_name))
def url_subcommand(args):
"""
Print the URL(s) for a download
"""
downloads = get_current_release_downloads()
download = downloads[args.download_name]["metadata"]
urls = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment