Skip to content

Commit

Permalink
feat(go-task): add virtual environment management tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 2, 2023
1 parent 601fb6f commit b4e42a5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions chezmoi/Taskfile.dist.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ tasks:
cmds:
- poetry config virtualenvs.create true

mkvenv:
desc: "Create a virtualenv: mkvenv -- name"
cmds:
- mkvirtualenv {{"{{.CLI_ARGS}}"}}

workon:
desc: "Activate a virtualenv: workon -- name"
cmds:
- workon {{"{{.CLI_ARGS}}"}}

rmvenv:
desc: "Remove a virtualenv: rmvenv -- name"
cmds:
- rmvirtualenv {{"{{.CLI_ARGS}}"}}

{{- if eq .chezmoi.os "linux" }}
restart-docker-daemon:
desc: Restart the Docker daemon
Expand Down

0 comments on commit b4e42a5

Please sign in to comment.