Skip to content

Commit

Permalink
Kind extra args support (#10)
Browse files Browse the repository at this point in the history
* use dedicated env vars

* add extra args support for kind create
  • Loading branch information
nolte authored Jan 23, 2024
1 parent 03360e6 commit 9d14d82
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/taskfile-include-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

version: '3'

vars:
KIND_CREATE_EXTRA_ARGS: ""

tasks:
start:
desc: kind create cluster
dir: '{{.USER_WORKING_DIR}}'
cmds:
- |
kind create cluster
kind create {{.KIND_CREATE_EXTRA_ARGS}} cluster
destroy:
desc: kind delete cluster
Expand Down
4 changes: 2 additions & 2 deletions src/taskfile-include-mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: '3'

vars:
PYTHON_VENVS_BASEDIR: ~/.venvs/
PYTHON_VENV_DIR: "{{.PYTHON_VENVS_BASEDIR}}/docs"
PYTHON_VENV_DIR_DOCS: "{{.PYTHON_VENVS_BASEDIR}}/docs"

tasks:
start:
Expand All @@ -13,6 +13,6 @@ tasks:
cmds:
- |
bash -c "
source {{.PYTHON_VENV_DIR}}/bin/activate && \
source {{.PYTHON_VENV_DIR_DOCS}}/bin/activate && \
mkdocs serve -a localhost:8001
"
6 changes: 3 additions & 3 deletions src/taskfile-include-pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: '3'

vars:
PYTHON_VENVS_BASEDIR: ~/.venvs/
PYTHON_VENV_DIR: "{{.PYTHON_VENVS_BASEDIR}}/development"
PYTHON_VENV_DIR_DEVELOPMENT: "{{.PYTHON_VENVS_BASEDIR}}/development"

tasks:
install:
Expand All @@ -13,7 +13,7 @@ tasks:
cmds:
- |
bash -c "
source {{.PYTHON_VENV_DIR}}/bin/activate && \
source {{.PYTHON_VENV_DIR_DEVELOPMENT}}/bin/activate && \
pre-commit install
"
start:
Expand All @@ -22,6 +22,6 @@ tasks:
cmds:
- |
bash -c "
source {{.PYTHON_VENV_DIR}}/bin/activate && \
source {{.PYTHON_VENV_DIR_DEVELOPMENT}}/bin/activate && \
pre-commit run --all-files
"

0 comments on commit 9d14d82

Please sign in to comment.