Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
|
Static Private Member Functions | |
static async Task< int > | Main (string[] args) |
static void | InitialiseConfigs () |
Initialises the application's config manager. | |
static void | InitialiseLogger () |
Initialises the application's logger. | |
static int | ParseArgs (string[] args) |
Parses the command-line arguments passed to the application. | |
static void | PrintHelp () |
Prints the help text for hermod. | |
static string | GetApplicationVersion () |
Gets the application's version string. | |
static void | PrintVersion () |
Prints the application's version. | |
static ? LogEventLevel | GetLogLevelFromArg (string? arg) |
Converts an incoming application argument to its respective log level. | |
Static Private Attributes | |
static string | _shortOpts = "c:L:hv%Ui" |
static Option[] | _longOpts |
static ? FileInfo | _overriddenConfigLocation = null |
static ? ILogger | _appLogger = null |
static ? LogEventLevel | _logLevel = null |
static ConfigManager | _cfgManager = ConfigManager.Instance |
static bool | _interactiveMode = false |
Hermod's entry point.
Handles all pre-init steps and starts execution of the main business logic.
Definition at line 20 of file Program.cs.
|
inlinestaticprivate |
Gets the application's version string.
Definition at line 170 of file Program.cs.
Referenced by Hermod.Program.PrintHelp().
|
inlinestaticprivate |
Converts an incoming application argument to its respective log level.
arg | The argument to parse. |
Definition at line 186 of file Program.cs.
Referenced by Hermod.Program.InitialiseLogger(), and Hermod.Program.ParseArgs().
|
inlinestaticprivate |
Initialises the application's config manager.
Definition at line 62 of file Program.cs.
References Hermod.Program._cfgManager, and Hermod.Program._overriddenConfigLocation.
Referenced by Hermod.Program.Main().
|
inlinestaticprivate |
Initialises the application's logger.
Definition at line 73 of file Program.cs.
References Hermod.Program._appLogger, Hermod.Program._cfgManager, Hermod.Program._logLevel, Hermod.Core.Logger.GetLogger(), Hermod.Program.GetLogLevelFromArg(), and Hermod.Core.Logger.Logger().
Referenced by Hermod.Program.Main().
|
inlinestaticprivate |
Definition at line 40 of file Program.cs.
References Hermod.Program._appLogger, Hermod.Program._cfgManager, Hermod.Program._interactiveMode, Hermod.Program.InitialiseConfigs(), Hermod.Program.InitialiseLogger(), and Hermod.Program.ParseArgs().
|
inlinestaticprivate |
Parses the command-line arguments passed to the application.
args | The arguments passed. |
Definition at line 92 of file Program.cs.
References Hermod.Program._interactiveMode, Hermod.Program._logLevel, Hermod.Program._longOpts, Hermod.Program._overriddenConfigLocation, Hermod.Program._shortOpts, Hermod.Program.GetLogLevelFromArg(), Hermod.Program.PrintHelp(), and Hermod.Program.PrintVersion().
Referenced by Hermod.Program.Main().
|
inlinestaticprivate |
Prints the help text for hermod.
Definition at line 144 of file Program.cs.
References Hermod.Program.GetApplicationVersion().
Referenced by Hermod.Program.ParseArgs().
|
staticprivate |
Prints the application's version.
Referenced by Hermod.Program.ParseArgs().
|
staticprivate |
Definition at line 35 of file Program.cs.
Referenced by Hermod.Program.InitialiseLogger(), and Hermod.Program.Main().
|
staticprivate |
Definition at line 37 of file Program.cs.
Referenced by Hermod.Program.InitialiseConfigs(), Hermod.Program.InitialiseLogger(), and Hermod.Program.Main().
|
staticprivate |
Definition at line 38 of file Program.cs.
Referenced by Hermod.Program.Main(), and Hermod.Program.ParseArgs().
|
staticprivate |
Definition at line 36 of file Program.cs.
Referenced by Hermod.Program.InitialiseLogger(), and Hermod.Program.ParseArgs().
|
staticprivate |
Definition at line 23 of file Program.cs.
Referenced by Hermod.Program.ParseArgs().
|
staticprivate |
Definition at line 34 of file Program.cs.
Referenced by Hermod.Program.InitialiseConfigs(), and Hermod.Program.ParseArgs().
|
staticprivate |
Definition at line 22 of file Program.cs.
Referenced by Hermod.Program.ParseArgs().