1 // mod argument_parser;
7 use configuration::Configuration;
8 use command::{available_commands, Command, help::Help};
10 fn main() -> Result<()> {
11 let configuration = Configuration::new();
12 let commands = available_commands();
14 println!("CONFIGURATION DIRECTORY: {}", configuration.config_directory.display());
15 println!("DATA DIRECTORY: {}", configuration.data_directory.display());
16 println!("OUTPUT DIRECTORY: {}", configuration.output_directory.display());
18 let arguments: Vec<String> = args().collect();
20 if let Some(command_name) = arguments.get(1) {
21 if let Some(command) = commands.iter().find(|&c| c.command() == command_name) {
22 return command.execute(arguments.get(2));
26 Help::new().execute(None)