gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]