Skip to content

Commit

Permalink
[enh] store silkaj version in constants file.
Browse files Browse the repository at this point in the history
  • Loading branch information
M5oul committed Jan 28, 2018
1 parent 3c6eeef commit 61c1628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SILKAJ_VERSION = "silkaj 0.3.0"
NO_MATCHING_ID = "No matching identity"
3 changes: 2 additions & 1 deletion src/silkaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from tx import send_transaction
from commands import *
from wot import *
from constants import SILKAJ_VERSION


def usage():
Expand Down Expand Up @@ -65,7 +66,7 @@ def cli():
ep, c = dict(), Command()
subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id", "wot"]
if c.is_version_request():
print("silkaj 0.3.0")
print(SILKAJ_VERSION)
sys.exit()
if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd:
usage()
Expand Down

0 comments on commit 61c1628

Please sign in to comment.