gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Allow CLI to register public acconts.


From: gnunet
Subject: [libeufin] branch master updated: Allow CLI to register public acconts.
Date: Wed, 12 Jan 2022 20:14:42 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 3059e32b Allow CLI to register public acconts.
3059e32b is described below

commit 3059e32bf70bf25f58d65dbf4238c7d6906a589f
Author: ms <ms@taler.net>
AuthorDate: Wed Jan 12 20:14:35 2022 +0100

    Allow CLI to register public acconts.
---
 cli/bin/libeufin-cli | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index f7333aaa..ac506169 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -1259,13 +1259,20 @@ def sandbox_demobank_info(obj, bank_account):
 will be both the username to login at the bank and the bank account
 label"""
 )
+@click.option(
+    "--public",
+    required=False,
+    default=False,
+    help="Creates a public bank account",
+)
 @click.pass_obj
-def sandbox_demobank_register(obj):
+def sandbox_demobank_register(obj, public):
     sandbox_base_url = obj.require_sandbox_base_url()
     url = urljoin_nodrop(sandbox_base_url, f"/access-api/testing/register")
     try:
-        resp = post(url,
-            json=dict(username=obj.username, password=obj.password),
+        resp = post(
+            url,
+            json=dict(username=obj.username, password=obj.password, 
isPublic=public),
         )
     except Exception as e:
         print(e)

-- 
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]