taskfiles
https://github.com/standardloop/taskfiles
My collection of re-usable Taskfiles
How to use
Newest version of task
- https://taskfile.dev/docs/remote-taskfiles
Your Taskfile
vars:
STANDARDLOOP_TASKFILES_VERSION: "v0.0.6"
includes:
color: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/color.yml
rancher: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/rancher.yml
colima: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/colima.yml
c: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/c.yml
Color
Task List
This Taskfile is for sharing variables that allow for settings text color.

Using in your Taskfile
When you include this Taskfile you have access to all the color variables.
In general, you will use it like this:
{{.TEXT_YOUR_CHOICE_HERE}} your message here {{.TEXT_RESET}}
Example:
---
version: "3"
vars:
STANDARDLOOP_TASKFILES_VERSION: "v0.0.6"
includes:
color: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/color.yml
tasks:
default:
silent: true
cmds:
- echo "{{.TEXT_YELLOW}}waiting....{{.TEXT_RESET}}"
- echo "{{.TEXT_GREEN}}DONE{{.TEXT_RESET}}"
Rancher
This Taskfile contains tasks for spinning up rancher docker engine.
Task List
task: Available tasks for this project:
* start Start Rancher Docker Engine
* clean Shutdown Rancher Docker Engine
Using in your Taskfile
Example:
---
version: "3"
vars:
STANDARDLOOP_TASKFILES_VERSION: "v0.0.6"
includes:
rancher: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/rancher.yml
env:
DOCKER_ENGINE_CPUS: 4
DOCKER_ENGINE_MEMORY: 8
tasks:
default:
silent: true
cmds:
- task: rancher:start
vars:
FLAGS: "--virtual-machine.number-cpus {{.DOCKER_ENGINE_CPUS}} --virtual-machine.memory-in-gb {{.DOCKER_ENGINE_MEMORY}}"
Running:
$ task
INFO[0000] About to launch /usr/bin/open -a /Applications/Rancher Desktop.app --args --application.startInBackground=true --virtualMachine.memoryInGB 8 --virtualMachine.numberCPUs 4 ...
Waiting for docker to come up...
Waiting for docker to come up...
Waiting for docker to come up...
Waiting for docker to come up...
Docker came up!
$ task clean
Shutting down.
Colima
This Taskfile contains tasks for spinning up colima docker engine.
Task List
task: Available tasks for this project:
* start Start up colima.
* clean Delete colima, automatically say yes.
Using in your Taskfile
Example:
---
version: "3"
vars:
STANDARDLOOP_TASKFILES_VERSION: "v0.0.6"
includes:
colima: https://raw.githubusercontent.com/standardloop/taskfiles/refs/tags/{{.STANDARDLOOP_TASKFILES_VERSION}}/colima.yml
env:
DOCKER_ENGINE_CPUS: 4
DOCKER_ENGINE_MEMORY: 8
tasks:
default:
silent: true
cmds:
- task: colima:start
vars:
FLAGS: "--network-address --cpu {{.DOCKER_ENGINE_CPUS}} --memory {{.DOCKER_ENGINE_MEMORY}}"
clean:
cmds:
- task: colima:clean
Running:
$ task
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] creating and starting ... context=vm
INFO[0020] provisioning ... context=docker
INFO[0021] starting ... context=docker
INFO[0022] done
$ task clean
are you sure you want to delete colima and all settings? [y/N] INFO[0000] deleting colima
INFO[0000] deleting ... context=docker
INFO[0000] done
C
Reusable tasks to:
- format code
- generate docs
- compile
- compile with address sanitizing
- run test
- download my dylib dependencies
Task List
task: Available tasks for this project:
* check-ci
* release Build the dylib.
* test:build Build the test program.
* test:build-sanitize Build the test with address sanitizer on.
* test:clean
* dependencies:helper-task
* dependencies:helper-get-latest
* dependencies:get-latest
* dependencies:logger
* dependencies:logger:latest
* dependencies:util
* dependencies:util:latest
* dependencies:collections
* dependencies:collections:latest
* dependencies:json:latest
* dependencies:testing
* dependencies:testing:latest
* fmt
* docs
* docs:doxygen https://www.doxygen.nl/
* docs:moxygen https://0state.com/moxygen
* docs:readme