gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: rename sub-command


From: gnunet
Subject: [libeufin] branch master updated: rename sub-command
Date: Tue, 06 Oct 2020 14:20:15 +0200

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 b7d7165  rename sub-command
b7d7165 is described below

commit b7d7165db29a1a4479ec6b82ceea977dc2578121
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 6 14:20:06 2020 +0200

    rename sub-command
---
 cli/libeufin-cli | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 143ff35..fac386d 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -142,13 +142,13 @@ def new_ebics_connection(obj, connection_name, ebics_url, 
host_id, partner_id,
         exit(1)
     print(resp.content.decode("utf-8"))
 
-@connections.command(help="bootstrap the bank connection")
+@connections.command(help="synchronize the bank connection")
 @click.option("--connection-name", help="Connection ID", required=True)
 @click.option("--nexus-user-id", help="Nexus user ID", required=True)
 @click.option("--nexus-password", help="Nexus password", required=True)
 @click.argument("nexus-base-url")
 @click.pass_obj
-def bootstrap_connection(obj, connection_name, nexus_user_id, nexus_password, 
nexus_base_url):
+def sync(obj, connection_name, nexus_user_id, nexus_password, nexus_base_url):
     url = urljoin(nexus_base_url, 
"/bank-connections/{}/connect".format(connection_name))
     try:
         resp = post(url, json=dict(), auth = auth.HTTPBasicAuth(nexus_user_id, 
nexus_password))
@@ -218,7 +218,6 @@ def list_connections(nexus_user_id, nexus_password, 
nexus_base_url):
 @click.argument("nexus-base-url")
 @click.pass_obj
 def list_offered_bank_accounts(obj, connection_name, nexus_user_id, 
nexus_password, nexus_base_url):
-    # FIXME/NOTE: the 'ebics' part will soon go away.
     url = urljoin(nexus_base_url, 
"/bank-connections/{}/accounts".format(connection_name))
     try:
         resp = get(url, json=dict(), auth = auth.HTTPBasicAuth(nexus_user_id, 
nexus_password))
@@ -227,20 +226,6 @@ def list_offered_bank_accounts(obj, connection_name, 
nexus_user_id, nexus_passwo
         return
     print(resp.content.decode("utf-8"))
 
-@accounts.command(help="list imported bank accounts")
-@click.option("--nexus-user-id", help="Nexus user ID", required=True)
-@click.option("--nexus-password", help="Nexus password", required=True)
-@click.argument("nexus-base-url")
-@click.pass_obj
-def list_bank_accounts(obj, nexus_user_id, nexus_password, nexus_base_url):
-    url = urljoin(nexus_base_url, "/bank-accounts")
-    try:
-        resp = get(url, json=dict(), auth = auth.HTTPBasicAuth(nexus_user_id, 
nexus_password))
-    except Exception:
-        print("Could not reach nexus")
-        return
-    print(resp.content.decode("utf-8"))
-
 @accounts.command(help="prepare payment debiting 'account-name'")
 @click.option("--account-name", help="bank account name", required=True)
 @click.option("--credit-iban", help="IBAN that will receive the payment", 
required=True)

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