diff --git a/src/constants.py b/src/constants.py index 7082676be469120ae69c5eec83410685d93a17ab..00e6436af02a9f85c1dab21c460cb2c77dd18ce9 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1 +1,2 @@ +SILKAJ_VERSION = "silkaj 0.3.0" NO_MATCHING_ID = "No matching identity" diff --git a/src/silkaj.py b/src/silkaj.py index 59d207d00c31f1cbc24632b785c96861afeee29b..35cf51b22e8640574760f841399cbc0d312ff54e 100755 --- a/src/silkaj.py +++ b/src/silkaj.py @@ -7,6 +7,7 @@ from commandlines import Command from tx import send_transaction from commands import * from wot import * +from constants import SILKAJ_VERSION def usage(): @@ -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()