Skip to content

Commit

Permalink
feat: Async for jnv
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Dec 26, 2024
1 parent 353db4a commit 922c519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 249 deletions.
242 changes: 0 additions & 242 deletions src/__main.rs

This file was deleted.

10 changes: 3 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,11 @@ fn parse_input(args: &Args) -> Result<String> {

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let mut content = String::new();
File::open(format!(
"{}/examples/large.json",
std::env::current_dir()?.display()
))?
.read_to_string(&mut content)?;
let args = Args::parse();
let input = parse_input(&args)?;

prompt::run(
Box::leak(content.into_boxed_str()),
Box::leak(input.into_boxed_str()),
Duration::from_millis(300),
Duration::from_millis(600),
Duration::from_millis(200),
Expand Down

0 comments on commit 922c519

Please sign in to comment.