libeufin

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

commit 013d0f4f9115d146bbe301bf48f3096e3b7dda1c
parent 9b2effe15fe0af376e486dd979122eab4c1ab63e
Author: MS <ms@taler.net>
Date:   Tue, 15 Dec 2020 19:02:10 +0100

CLI: scheduling commands skeletons.

Diffstat:
Mcli/libeufin-cli | 16++++++++++++++++
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 1+
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli @@ -226,6 +226,22 @@ def list_offered_bank_accounts(obj, connection_name): exit(1) print(resp.content.decode("utf-8")) +@accounts.command(help="Schedules a new task") +def task_schedule(): + pass + +@accounts.command(help="Shows the status of one task") +def task_status(): + pass + +@accounts.command(help="Deletes one task") +def task_delete(): + pass + +@accounts.command(help="Shows all the active tasks") +def tasks_show(): + pass + @accounts.command(help="show accounts belonging to calling user") @click.pass_obj def show(obj): diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -459,6 +459,7 @@ fun serverMain(dbName: String, host: String) { } catch (e: IllegalArgumentException) { throw NexusError(HttpStatusCode.BadRequest, "bad cron spec: ${e.message}") } + // sanity checks. when (schedSpec.type) { "fetch" -> { val fetchSpec = jacksonObjectMapper().treeToValue(schedSpec.params, FetchSpecJson::class.java)