Skip to content

Commit

Permalink
Setup aliases in taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hilli committed Jun 25, 2023
1 parent 149d978 commit b02aa6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tasks:
desc: Build binaries
cmds:
- go build -ldflags="-X github.com/hilli/go-kef-w2/cmd.Version={{.GIT_COMMIT}}" -o bin/kefw2{{exeExt}} cmd/kefw2/kefw2.go
alias: [b]
aliases: [b]
sources:
- cmd/kefw2/**/*.go
- kefw2/*.go
Expand All @@ -33,6 +33,7 @@ tasks:

complete:
desc: Generate bash/zsh completion script
aliases: [c]
cmds:
- bin/kefw2 completion bash > {{.SHELL_COMP_PREFIX}}/share/bash-completion/completions/kefw2
- bin/kefw2 completion zsh > {{.SHELL_COMP_PREFIX}}/share/zsh-completions/_kefw2
Expand All @@ -45,6 +46,8 @@ tasks:

all:
desc: Run all tasks
aliases: [a]
silent: true
cmds:
- task build
- task complete
Expand Down

0 comments on commit b02aa6b

Please sign in to comment.