Skip to content

Commit

Permalink
Merge pull request #22 from cherryramatisdev/fix/include-template-on-…
Browse files Browse the repository at this point in the history
…binary

Fix: Include template on the binary
  • Loading branch information
cherryramatisdev authored Dec 30, 2023
2 parents 86a28c2 + a22ce50 commit cc6dcbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
install:
./bin/compile
mv target/release/rq ~/.local/bin
8 changes: 1 addition & 7 deletions cli/src/tui/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ pub fn call() -> anyhow::Result<()> {
},
};

let template = std::fs::read_to_string(format!(
"{}/cli/src/tui/template.tiny",
std::env::current_dir().unwrap().display(),
))?;
let template = include_str!("template.tiny").to_string();

let mut templates = Templates::new(template, root_view);

Expand All @@ -98,6 +95,3 @@ pub fn call() -> anyhow::Result<()> {

Ok(())
}

// https://p.modprog.de/pp3R.rs
// https://p.modprog.de/EMam

0 comments on commit cc6dcbe

Please sign in to comment.