Skip to content

Commit

Permalink
build(task): use ext for clean-up, in generates
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Dec 13, 2024
1 parent ac75342 commit 0b99c98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tasks:
sources:
- main.go
generates:
- memsparkline
- memsparkline{{.ext}}

build_test_binaries:
desc: 'Build the test binaries'
Expand All @@ -61,13 +61,13 @@ tasks:
sources:
- test/sleep.go
generates:
- test/sleep
- test/sleep{{.ext}}

clean:
desc: 'Clean up binaries'
cmds:
- rm -f memsparkline
- cmd: rm -f {{.test_binary | shellQuote}}
- rm -f memsparkline{{.ext}}
- cmd: rm -f {{.test_binary | shellQuote}}{{.ext}}
for:
var: test_binaries
as: test_binary
Expand Down

0 comments on commit 0b99c98

Please sign in to comment.