Skip to content

Commit

Permalink
ci: fix ignore not work
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 5, 2022
1 parent 56aa4cd commit 62e0ac3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions template/cargo-generate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ prompt = "Which cxx project type?"
choices = ["bin", "lib"]
default = "bin"

[conditional.'proj_type == "bin"']
ignore = ["src/library.h", "src/library.cpp"]

[conditional.'proj_type == "lib"'.placeholders.lib_type]
ignore = ["src/main.cpp"]
type = "string"
prompt = "Which lib type?"
choices = ["static", "shared"]
default = "shared"

[conditional.'proj_type == "bin"']
ignore = ["src/library.h", "src/library.cpp"]

[conditional.'proj_type == "lib"']
ignore = ["src/main.cpp"]

0 comments on commit 62e0ac3

Please sign in to comment.