summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 5412735..f5c4740 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -79,7 +79,10 @@
 
 use std::path::PathBuf;
 
-use brainf_rs::utility::{execute_from_file, execute_from_str};
+use brainf_rs::{
+	executor,
+	utility::{execute_from_file, execute_from_str},
+};
 use clap::{Parser, Subcommand};
 use miette::Context;
 
@@ -116,9 +119,10 @@ fn main() -> miette::Result<()> {
 
 	match app.command {
 		Command::File { ref path } => {
-			execute_from_file(path, &mut tape).wrap_err("when executing from file")?;
+			execute_from_file::<executor::U8>(path, &mut tape)
+				.wrap_err("when executing from file")?;
 		}
-		Command::Text { ref input } => execute_from_str(input, &mut tape)?,
+		Command::Text { ref input } => execute_from_str::<executor::U8>(input, &mut tape)?,
 	};
 
 	Ok(())