libeufin

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

commit 5fc20cc6b2c75c00ca857c7d68b281dfcd0b6e29
parent d6d86986b96baaabd67d1128c26a4fbc630ada0c
Author: MS <ms@taler.net>
Date:   Sun,  3 Dec 2023 21:01:32 +0100

CLI account creation

printing the new account payto://-address

Diffstat:
Mbank/src/main/kotlin/tech/libeufin/bank/Main.kt | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt @@ -326,7 +326,10 @@ class ChangePw : CliktCommand("Change account password", name = "passwd") { } } -class CreateAccount : CliktCommand("Create an account", name = "create-account") { +class CreateAccount : CliktCommand( + "Create an account, returning the payto://-URI associated with it", + name = "create-account" +) { private val configFile by option( "--config", "-c", help = "set the configuration file" @@ -350,6 +353,7 @@ class CreateAccount : CliktCommand("Create an account", name = "create-account") AccountCreationResult.Success -> logger.info("Account '${json.username}' created") } + println(internalPayto) } } }