Skip to content

Commit

Permalink
Implemented simple versioning that will most likely change in the fut…
Browse files Browse the repository at this point in the history
…ure.
  • Loading branch information
CoolDude53 committed Sep 25, 2017
1 parent 811bcad commit 570a323
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
@click.command()
@click.option('--name', prompt='Please enter your name/package', help='Your package name in format name/package.')
@click.option('--path', help='Absolute path to install packages. Defaults to current dir.')
def pull(name, path):
@click.option('--version', help='Version number for package.')
def pull(name, path, version):
url = "http://snatch.joycestick.com/api/" + name
if version is not None:
url += "/" + version

download(url, path)


Expand Down

0 comments on commit 570a323

Please sign in to comment.