[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 06/09: CLI
From: |
gnunet |
Subject: |
[libeufin] 06/09: CLI |
Date: |
Fri, 20 Jan 2023 16:49:40 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit fcca16e8d04ff00e408d3c225d77b8afefa2a997
Author: MS <ms@taler.net>
AuthorDate: Fri Jan 20 16:21:20 2023 +0100
CLI
Now actually adding "GET /cashouts". The previous
CLI change added "GET /accounts".
---
cli/bin/libeufin-cli | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index 8fd3a7e4..68c38e2b 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -1928,4 +1928,29 @@ def circuit_accounts(obj):
check_response_status(resp)
tell_user(resp)
+
+@sandbox_demobank.command(
+ "circuit-cashouts",
+ help="Gets the list of all the pending and confirmed cash-out operations."
+)
+@click.pass_obj
+def circuit_cashouts(obj):
+ # Check admin is requesting.
+ if (obj.username != "admin"):
+ print("Not running as 'admin'. Won't request", file=sys.stderr)
+ exit(1)
+ cashouts_endpoint = obj.circuit_api_url(f"cashouts")
+ try:
+ resp = get(
+ cashouts_endpoint,
+ **maybe_auth(obj)
+ )
+ except Exception as e:
+ print(e)
+ print("Could not reach the bank at " + cashouts_endpoint)
+ exit(1)
+
+ check_response_status(resp)
+ tell_user(resp)
+
cli()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (048e0ada -> 45147878), gnunet, 2023/01/20
- [libeufin] 03/09: Circuit API., gnunet, 2023/01/20
- [libeufin] 02/09: 204 responses with less code., gnunet, 2023/01/20
- [libeufin] 04/09: testing the previous change, gnunet, 2023/01/20
- [libeufin] 08/09: Error management., gnunet, 2023/01/20
- [libeufin] 06/09: CLI,
gnunet <=
- [libeufin] 07/09: adapt test, gnunet, 2023/01/20
- [libeufin] 01/09: CLI., gnunet, 2023/01/20
- [libeufin] 09/09: revert name change to match the docs, gnunet, 2023/01/20
- [libeufin] 05/09: Circuit API., gnunet, 2023/01/20