-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathweaver.cc
36 lines (32 loc) · 1.22 KB
/
weaver.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* ===============================================================
* Description: Weaver wrapper program that calls all other
* Weaver programs.
*
* Created: 2014-11-25 08:55:19
*
* Author: Ayush Dubey, [email protected]
*
* Copyright (C) 2014, Cornell University, see the LICENSE file
* for licensing agreement
* ===============================================================
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <vector>
#include <e/subcommand.h>
int
main(int argc, const char* argv[])
{
std::vector<e::subcommand> cmds;
cmds.push_back(e::subcommand("timestamper", "Start a new Weaver timestamper"));
cmds.push_back(e::subcommand("shard", "Start a new Weaver shard"));
cmds.push_back(e::subcommand("parse-config", "Parse the Weaver configuration file"));
return dispatch_to_subcommands(argc, argv,
"weaver", "Weaver",
PACKAGE_VERSION,
"weaver-",
"WEAVER_EXEC_PATH", WEAVER_EXEC_DIR,
&cmds.front(), cmds.size());
}