Skip to content

Commit

Permalink
chore(cargo-generate): move codecov prompt to rhai script
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Aug 4, 2024
1 parent 8b509e8 commit 3e8d843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
[template]
ignore = ["cargo_generate_hooks"]

[placeholders.optional_codecov]
prompt = "Optional Codecov token (leave empty if none):"
type = "string"

[hooks]
init = ["cargo_generate_hooks/init.rhai"]
3 changes: 2 additions & 1 deletion cargo_generate_hooks/init.rhai
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
debug(`hello cargo generate!`);
let codecov = variable::prompt("Optional Codecov token (leave empty if none)");
variable::set("codecov", codecov);

0 comments on commit 3e8d843

Please sign in to comment.