Skip to content
Snippets Groups Projects
Commit 61c1628c authored by Moul's avatar Moul
Browse files

[enh] store silkaj version in constants file.

parent 3c6eeef6
No related branches found
No related tags found
No related merge requests found
SILKAJ_VERSION = "silkaj 0.3.0"
NO_MATCHING_ID = "No matching identity" NO_MATCHING_ID = "No matching identity"
...@@ -7,6 +7,7 @@ from commandlines import Command ...@@ -7,6 +7,7 @@ from commandlines import Command
from tx import send_transaction from tx import send_transaction
from commands import * from commands import *
from wot import * from wot import *
from constants import SILKAJ_VERSION
def usage(): def usage():
...@@ -65,7 +66,7 @@ def cli(): ...@@ -65,7 +66,7 @@ def cli():
ep, c = dict(), Command() ep, c = dict(), Command()
subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id", "wot"] subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id", "wot"]
if c.is_version_request(): if c.is_version_request():
print("silkaj 0.3.0") print(SILKAJ_VERSION)
sys.exit() sys.exit()
if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd: if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd:
usage() usage()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment