gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: CLI: scheduling commands skeletons.


From: gnunet
Subject: [libeufin] branch master updated: CLI: scheduling commands skeletons.
Date: Tue, 15 Dec 2020 19:02:36 +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 013d0f4  CLI: scheduling commands skeletons.
013d0f4 is described below

commit 013d0f4f9115d146bbe301bf48f3096e3b7dda1c
Author: MS <ms@taler.net>
AuthorDate: Tue Dec 15 19:02:10 2020 +0100

    CLI: scheduling commands skeletons.
---
 cli/libeufin-cli                                         | 16 ++++++++++++++++
 .../kotlin/tech/libeufin/nexus/server/NexusServer.kt     |  1 +
 2 files changed, 17 insertions(+)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index b388263..f90dfb4 100755
--- 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
index e0708a7..df5a3d2 100644
--- 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)

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