Skip to content

Commit

Permalink
Do not use bash for example hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Dec 6, 2024
1 parent eeeb031 commit 6475cb0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ jobs:
run: cargo test
- name: run all examples
run: |
cargo run -- examples/hooks/ --no-input
cargo run -- examples/hooks/ --no-input
cargo run -- examples/complex/ --no-input
cargo run -- examples/default-from-variable/ --no-input
cargo run -- examples/slugify/ --no-input
cargo run -- examples/super-basic/ --no-input
cargo run -- examples/with-directory/ --no-input
3 changes: 3 additions & 0 deletions examples/hooks/greet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env python3

print("Hello {{greeting_recipient}}!")
3 changes: 0 additions & 3 deletions examples/hooks/greet.sh

This file was deleted.

2 changes: 1 addition & 1 deletion examples/hooks/template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pre_gen_hooks = [
]

post_gen_hooks = [
{ name = "greeting", path = "greet.sh" },
{ name = "greeting", path = "greet.py" },
]

[[variables]]
Expand Down

0 comments on commit 6475cb0

Please sign in to comment.