[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 02/07: options for reducer cli
From: |
gnunet |
Subject: |
[taler-anastasis] 02/07: options for reducer cli |
Date: |
Sat, 12 Sep 2020 11:01:49 +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 1e3923c616962cf911a190243fee5af3719e2ed2
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Fri Sep 11 09:43:15 2020 +0200
options for reducer cli
---
src/cli/anastasis-cli-redux.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/cli/anastasis-cli-redux.c b/src/cli/anastasis-cli-redux.c
index c48b77d..9992600 100644
--- a/src/cli/anastasis-cli-redux.c
+++ b/src/cli/anastasis-cli-redux.c
@@ -37,6 +37,15 @@ static struct GNUNET_CURL_RescheduleContext *rc;
*/
static struct GNUNET_CURL_Context *ctx;
+/**
+ * -b option given.
+ */
+static int b_flag;
+
+/**
+ * -r option given.
+ */
+static int r_flag;
/**
* @brief Shutdown the application.
@@ -91,6 +100,13 @@ run (void *cls,
"WARNING",
NULL));
+ if (! (r_flag ^ b_flag))
+ {
+ printf ("Please set one option: -b or -r !\n");
+ GNUNET_SCHEDULER_shutdown ();
+ return;
+ }
+
/* initialize HTTP client FIXME: Do we need http client?*/
ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule,
&rc);
@@ -106,6 +122,14 @@ main (int argc,
/* the available command line options */
struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('b',
+ "backup",
+ "use reducer to handle states for backup
process",
+ &b_flag),
+ GNUNET_GETOPT_option_flag ('r',
+ "restore",
+ "use reducer to handle states for restore
process",
+ &r_flag),
GNUNET_GETOPT_OPTION_END
};
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-anastasis] branch master updated (3e1fd2b -> a7d37bf), gnunet, 2020/09/12
- [taler-anastasis] 01/07: work on reducer, gnunet, 2020/09/12
- [taler-anastasis] 02/07: options for reducer cli,
gnunet <=
- [taler-anastasis] 04/07: work on backup redux, gnunet, 2020/09/12
- [taler-anastasis] 03/07: work on reducer cli, gnunet, 2020/09/12
- [taler-anastasis] 06/07: fixed anastasis-reducer to return init state, gnunet, 2020/09/12
- [taler-anastasis] 05/07: work on backup redux, gnunet, 2020/09/12
- [taler-anastasis] 07/07: merge, gnunet, 2020/09/12