Set of administration tools for 42l's infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
727 B

#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate lazy_static;
extern crate base64;
extern crate crossterm;
mod globals;
mod helper_structs;
mod term;
mod texts;
mod tools;
mod man_emailacc;
mod man_emaildom;
mod man_news;
mod man_users;
mod db_config;
mod db_methods;
mod db_schema;
mod db_structs;
use crate::globals::FastConfig;
use crate::term::*;
use crate::texts::*;
use std::convert::TryInto;
use std::process;
// cmdline args uses
//use std::env;
fn main() {
process::exit(main_menu(FastConfig::init()).try_into().unwrap_or(255))
}
pub fn main_menu(fast_config: FastConfig) -> usize {
display_template();
display_menu(&MAIN_MENU_TXT, fast_config)
}