Skip to content

Commit

Permalink
chore: adjust justfile creation
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Oct 8, 2024
1 parent d6a9437 commit ce0f09f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::env;
use std::fs::Permissions;
use crate::models::TaskContext;
use crate::polyglot::PATH_SEPARATOR;
use crate::runners::justfile::init_justfile;

mod app;
mod keeper;
Expand Down Expand Up @@ -71,9 +72,8 @@ fn main() {
make_file.write_all(include_bytes!("./templates/Makefile")).unwrap();
println!("{}", "Makefile created".bold().green());
} else if runner_name == "just" {
let mut make_file = std::fs::File::create("justfile").unwrap();
make_file.write_all(include_bytes!("./templates/justfile")).unwrap();
println!("{}", "justfile created".bold().green());
init_justfile();
set_executable("justfile");
} else if runner_name == "jbang" {
let mut make_file = std::fs::File::create("jbang-catalog.json").unwrap();
make_file.write_all(include_bytes!("./templates/jbang-catalog.json")).unwrap();
Expand Down

0 comments on commit ce0f09f

Please sign in to comment.