From 9a482d28f5bfca11312b28e95d1ee02f6e6e5000 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 28 Sep 2022 17:51:47 +0200 Subject: [PATCH] show version --- cashu/core/settings.py | 1 + cashu/wallet/cli.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cashu/core/settings.py b/cashu/core/settings.py index d24c0c4..36ec220 100644 --- a/cashu/core/settings.py +++ b/cashu/core/settings.py @@ -32,3 +32,4 @@ LNBITS_ENDPOINT = env.str("LNBITS_ENDPOINT", default=None) LNBITS_KEY = env.str("LNBITS_KEY", default=None) MAX_ORDER = 64 +VERSION = "0.1.10" diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 07a0616..09a3f4a 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -17,7 +17,7 @@ from cashu.core.base import Proof from cashu.core.bolt11 import Invoice from cashu.core.helpers import fee_reserve from cashu.core.migrations import migrate_databases -from cashu.core.settings import CASHU_DIR, DEBUG, LIGHTNING, MINT_URL +from cashu.core.settings import CASHU_DIR, DEBUG, LIGHTNING, MINT_URL, VERSION from cashu.wallet import migrations from cashu.wallet.crud import get_reserved_proofs from cashu.wallet.wallet import Wallet as Wallet @@ -203,9 +203,7 @@ async def pay(ctx, invoice: str): @click.pass_context @coro async def info(ctx): - wallet: Wallet = ctx.obj["WALLET"] - await init_wallet(wallet) - wallet.status() + print(f"Version: {VERSION}") print(f"Debug: {DEBUG}") print(f"Cashu dir: {CASHU_DIR}") print(f"Mint URL: {MINT_URL}")