libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 7896b49cb99a658094159677f32e79643b92f535
parent 616f7108ea548df63edd21d0a8515a078519efc0
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue,  1 Oct 2019 16:03:49 +0200

Addressing #5913.

Diffstat:
Asrc/main/python/libeufin-cli | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/main/python/libeufin-cli b/src/main/python/libeufin-cli @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 + +import click + +@click.group() +@click.option( + "--base-url", default="http://host.name", + help="Base URL of the bank (defaults to http://localhost:5000/)") +@click.pass_context +def cli(ctx, base_url): + ctx.obj = dict(base_url=base_url) + +@cli.group() +def admin(): + pass + +@admin.command(help="Create a new customer") +@click.pass_obj +def customers(obj): + click.echo("Request creation of new customer or send initialization letter") + +@admin.command(help="Confirm INI and HIA messages via JSON API") +@click.option("--enc-key", help="Encryption RSA public key in PEM format") +@click.option("--es-key", help="Signature RSA public key in PEM format") +@click.option("--ia-key", help="Identification and authentication RSA public key in PEM format") +def initletter(enc_key, es_key, ia_key): + click.echo("Send initialization letter to confirm INI / HIA messages") + +cli()