Skip to content

Commit 4bbbf54

Browse files
committed
Move cli.rs out of lib.rs
1 parent 6e197ce commit 4bbbf54

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use strum_macros::{Display, EnumString};
22

3-
pub mod cli;
43
pub mod error;
54
pub mod mermaid_generator;
65
pub mod plantuml_generator;

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ use std::str::FromStr;
33
use clap::ArgMatches;
44
use sqlant::{get_generator, lookup_parser, GeneratorConfigOptions, GeneratorType};
55

6+
mod cli;
7+
68
fn get_arg(args: &ArgMatches, arg_name: &str) -> String {
79
args.get_one::<String>(arg_name).unwrap().to_string()
810
}
911

1012
#[tokio::main]
1113
async fn main() {
12-
let args = sqlant::cli::parse();
14+
let args = cli::parse();
1315

1416
let mut s = lookup_parser(
1517
&get_arg(&args, "connection_string"),

0 commit comments

Comments
 (0)