Skip to content

Commit

Permalink
fix: Try to get template to replace year/day with prompt values
Browse files Browse the repository at this point in the history
  • Loading branch information
icyJoseph committed Aug 20, 2021
1 parent 25a775f commit 269628f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions template/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[placeholders.year]
default = '20201'
default = '2021'
prompt = "What year?"
regex = "[0-9]+"
type = "string"

[placeholders.day]
prompt = "Want day?"
prompt = "What day?"
regex = "[0-9]+"
type = "string"
2 changes: 1 addition & 1 deletion template/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ fn solve(raw: String) -> () {
}

fn main() {
let input = aoc::get_input({% year %}, {% day %});
let input = aoc::get_input({{year}}, {{day}});
solve(input);
}

0 comments on commit 269628f

Please sign in to comment.