-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (35 loc) · 1.33 KB
/
Taskfile.yml
File metadata and controls
40 lines (35 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
env:
COMPLETELY_CONFIG_PATH: itkdev-docker-compose.completely.yaml
COMPLETELY_OUTPUT_PATH: itkdev-docker-compose-completion.bash
tasks:
build:
desc: Build completion script for Bash
cmds:
- task: completely
vars:
TASK_ARGS: generate
test:
desc: Template completions
cmds:
# Notice: The completions are not sorted alphabetically when running `completely test`.
- for:
- "itkdev-docker-compose -"
- "itkdev-docker-compose u"
- "itkdev-docker-compose op"
- "itkdev-docker-compose dru"
- "itkdev-docker-compose s"
- "itkdev-docker-compose sy"
- "itkdev-docker-compose sync:"
- "itkdev-docker-compose templa"
- "itkdev-docker-compose template:install -"
- "itkdev-docker-compose template:install "
task: completely
vars:
TASK_ARGS: test '{{.ITEM}}'
silent: true
completely:
desc: Run completely (https://github.com/bashly-framework/completely). Example `{{.TASK}} preview`
cmds:
- docker run --rm --env COMPLETELY_CONFIG_PATH --env COMPLETELY_OUTPUT_PATH --env COMPLETELY_DEBUG --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/completely {{.TASK_ARGS}} {{.CLI_ARGS}}