1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use database::cli::args;
use database::repository::ops;
use ops::individual_report_ops::handle_individual_report_command;
use ops::requirements_ops::handle_requirement_command;
use ops::sprint_ops::handle_sprint_command;
use ops::team_activities_ops::handle_team_activity_command;
use ops::team_report_ops::handle_team_report_command;
use ops::user_ops::handle_user_command;
use args::DatabaseArgs;
use args::EntityType;
use clap::Parser;
fn main() {
let args = DatabaseArgs::parse();
match args.entity_type {
EntityType::Sprint(sprint) => handle_sprint_command(sprint),
EntityType::TeamReport(team_report) => handle_team_report_command(team_report),
EntityType::Individual(individual_report) => {
handle_individual_report_command(individual_report)
}
EntityType::Requirements(requirement) => handle_requirement_command(requirement),
EntityType::TeamActivity(team_activity) => handle_team_activity_command(team_activity),
EntityType::User(user) => handle_user_command(user),
}
}