NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
main.cpp
1
10
11#include "orchestrator.hpp"
12
13#if defined(LOGGING)
14#include "notex/logging.hpp"
15#endif
16
17int main(int argc, char** argv) {
18#if defined(LOGGING)
19 // A debug build wants full internal detail; a release build with
20 // logging explicitly enabled only wants user-facing operations and
21 // above, to keep logs/notex.log from filling up with anchor-lookup
22 // and filesystem-scan noise.
23#if defined(DEBUG)
24 init_logging("notex", plog::debug);
25#else
26 init_logging("notex", plog::info);
27#endif
28#endif
29
30 notex::Orchestrator orchestrator;
31 return static_cast<int>(orchestrator.run(argc, argv));
32}
Owns the command-line parser and coordinates the domain objects that carry out each command.
ExitCode run(int argc, char **argv)
Parses the command line and dispatches to the requested command, catching every exception at this sin...
Logging utility with plog initialization.
void init_logging(const std::string &app_name, plog::Severity severity=plog::debug)
Initialize logging to file in logs/ directory.
Definition logging.hpp:118
Declares Orchestrator, the application layer that turns command-line input into calls on the notex_co...