Skip to content

Commit

Permalink
remove custom input from template
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsella committed Dec 9, 2023
1 parent f1415ef commit 22e22bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
28 changes: 15 additions & 13 deletions template/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[placeholders.input]
type = "string"
prompt = "main puzzle input"
regex = "[^ ]"
# useless for now as it don't support multiline

[placeholders.example]
type = "string"
prompt = "example input test case"
regex = "[^ ]"

[placeholders.example_eq]
type = "string"
prompt = "example input equal to"
regex = "[0-9]+"
# [placeholders.input]
# type = "string"
# prompt = "main puzzle input"
# regex = "[^ ]"
#
# [placeholders.example]
# type = "string"
# prompt = "example input test case"
# regex = "[^ ]"
#
# [placeholders.example_eq]
# type = "string"
# prompt = "example input equal to"
# regex = "[0-9]+"
4 changes: 2 additions & 2 deletions template/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fn part1() -> usize {
fn part1(input: &str) -> usize {
todo!()
}
fn part2() -> usize {
fn part2(input: &str) -> usize {
todo!()
}
fn main() {
Expand Down

0 comments on commit 22e22bc

Please sign in to comment.