MCPcopy Create free account
hub / github.com/cherryramatisdev/regexer / main

Function main

cli/src/main.rs:3–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1mod tui;
2
3fn main() {
4 let args: Vec<String> = std::env::args().collect();
5
6 if args.len() == 1 {
7 let _ = tui::tui::call().unwrap();
8 return
9 }
10
11 if args.len() > 1 {
12 let first_argument = &args[1];
13 let code = regexer::parse(first_argument.to_string());
14
15 println!("{}", code);
16 }
17}

Callers

nothing calls this directly

Calls 2

callFunction · 0.85
parseFunction · 0.50

Tested by

no test coverage detected