[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated (2454d97 -> ebf608f)
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated (2454d97 -> ebf608f) |
Date: |
Sat, 16 May 2020 19:39:19 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a change to branch master
in repository anastasis.
from 2454d97 prepared command line input reading
new 2832a2e added more options for keyboard input
new ebf608f added import option
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/cli/anastasis-cli-splitter.c | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/cli/anastasis-cli-splitter.c b/src/cli/anastasis-cli-splitter.c
index ff6dc34..786608b 100644
--- a/src/cli/anastasis-cli-splitter.c
+++ b/src/cli/anastasis-cli-splitter.c
@@ -29,10 +29,15 @@
#define MAX_SIZE_INPUT_BUFFER 256
/**
- * Global option '-me' to import json containing details of user.
+ * Global option '--me' to import json containing details of user.
*/
static int import_id;
+/**
+ * Global option '--import' to import json containing recovery document.
+ */
+static int import_recovery_document;
+
/**
* Reference to the keyboard task
*/
@@ -90,8 +95,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 +163,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")))
@@ -308,6 +331,10 @@ main (int argc,
"me",
"import json file containing details to create
user identifier",
&import_id),
+ GNUNET_GETOPT_option_flag ('i',
+ "import",
+ "import json file containing a recovery
document",
+ &import_recovery_document),
GNUNET_GETOPT_OPTION_END
};
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-anastasis] branch master updated (2454d97 -> ebf608f),
gnunet <=