2023-07-14 18:24:27 +02:00
|
|
|
use std::process::ExitCode;
|
2023-07-13 20:05:02 +02:00
|
|
|
|
2023-07-14 17:29:15 +02:00
|
|
|
mod address;
|
2023-07-22 18:02:05 +02:00
|
|
|
mod code;
|
2023-07-13 20:05:02 +02:00
|
|
|
mod config;
|
2023-07-14 20:00:12 +02:00
|
|
|
mod input;
|
2023-07-14 18:24:27 +02:00
|
|
|
mod service;
|
2023-07-13 20:05:02 +02:00
|
|
|
|
|
|
|
const COMMENT_CHAR: char = '#';
|
|
|
|
const DEFAULT_SEPARATOR: char = '+';
|
2023-07-14 17:29:15 +02:00
|
|
|
const KEY_SEPARATOR: char = ':';
|
2023-07-14 20:00:12 +02:00
|
|
|
const PARAM_SEPARATOR: char = '|';
|
2023-07-13 20:05:02 +02:00
|
|
|
|
2023-07-14 18:24:27 +02:00
|
|
|
fn main() -> ExitCode {
|
|
|
|
match service::start_service() {
|
|
|
|
Ok(_) => ExitCode::SUCCESS,
|
|
|
|
Err(e) => {
|
2023-07-14 18:39:14 +02:00
|
|
|
eprintln!("error: {e:#}");
|
2023-07-14 18:24:27 +02:00
|
|
|
ExitCode::FAILURE
|
|
|
|
}
|
|
|
|
}
|
2023-07-13 20:05:02 +02:00
|
|
|
}
|