gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 01/02: added more options for keyboard input


From: gnunet
Subject: [taler-anastasis] 01/02: added more options for keyboard input
Date: Sat, 16 May 2020 19:39:20 +0200

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 2832a2ee7aaf3ffe1b9549cba4fa77b1e5c1a8f3
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sat May 16 17:36:40 2020 +0000

    added more options for keyboard input
---
 src/cli/anastasis-cli-splitter.c | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/cli/anastasis-cli-splitter.c b/src/cli/anastasis-cli-splitter.c
index ff6dc34..9ce998e 100644
--- a/src/cli/anastasis-cli-splitter.c
+++ b/src/cli/anastasis-cli-splitter.c
@@ -90,8 +90,16 @@ read_keyboard_command (void *cls)
       printf (
         "\nOPTIONS:\n"
         "'x' to quit\n"
-        "'o' to show options\n"
+        "'o' to show these options\n"
+        "'server' to show added server\n"
         "'server add' to add a provider/server\n"
+        "'truth' to show created truths\n"
+        "'truth add' to add truth to a server\n"
+        "'truth add question' to create a truth with method 'secure 
question'\n"
+        "'truth --secrets' to show created truths with their secrets"
+        "'policy' to show created policies\n"
+        "'policy add' to add truths to a policy\n"
+        "'publish' to upload the recovery document\n"
         "\n"
         );
       GNUNET_free (buffer);
@@ -150,6 +158,16 @@ read_keyboard_command (void *cls)
     buffer = NULL;
     return;
   }
+  if (0 == strncmp ("truth add question",
+                    buffer,
+                    strlen ("truth add question")))
+  {
+    // FIXME "truth add question" logic here
+    start_read_keyboard ();
+    GNUNET_free (buffer);
+    buffer = NULL;
+    return;
+  }
   if (0 == strncmp ("truth --secrets",
                     buffer,
                     strlen ("truth --secrets")))

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]