Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Add deprecation warning for 'run' command
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszCki committed May 14, 2019
1 parent b6e8acb commit 7ed2a8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Paperspace Python
=================

Release 0.1.0
Release 0.1.1

See [releasenotes.md](https://github.com/Paperspace/paperspace-python/blob/master/releasenotes.md) for details on the current release, as well as release history.

Expand Down
5 changes: 5 additions & 0 deletions paperspace/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import sys

import click

from .cli import cli
from .jobs import run, print_json_pretty
from .login import login, logout, set_apikey
Expand Down Expand Up @@ -66,6 +68,9 @@ def main():
return not set_apikey(args[0])

if cmd == 'run':
click.echo("Deprecation warning: 'paperspace-python run' command is deprecated "
"and will be removed in next release\n")

if not args or args[0] in help_opts:
print('run usage: %s' % run_usage(prog))
sys.exit(not args)
Expand Down
2 changes: 1 addition & 1 deletion paperspace/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.1.0"
version = "0.1.1"

0 comments on commit 7ed2a8c

Please sign in to comment.