- Install devkit
curl -sSL https://raw.githubusercontent.com/42dev-co/devkit/main/devkit-install.sh | bash
- Methods to list all the Task
task
task --list
- Install a module
task install_mod url=<https://....>
- Update all modules
task update_mod
- Update all modules including devkit Taskfile
task update
The purpose of devkit is to setup a common task script for ur daily use. One such usage is that repetitive task or scripts can be install as modules, published and maintain by both private and public repos.
Example:
task install_mod url=https://github.com/42dev-co/otf-tasks.git
task otf:init name=someproject description="A opentofu project" tier=2
- the first command installs a module for opentofu scaffolding
- the second commands uses the module task script to scaffold a new OpenTofu project name
someproject
For following packages is what is install in a "*nix" base OS when you run the install devkit command.
curl -sSL https://raw.githubusercontent.com/42dev-co/devkit/main/devkit-install.sh | bash
- Devbox - A nix wrapper, user friendly
- Nix - Next Generation Package Management
- go-tasks - Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.
Create a taskfile and put it into git repo. Your repo shall contain the -tasks
suffix.
For example, https://github.com/42dev-co/otf-tasks.git will be install to ./modules/otf
folder.
After a module is install, you can run task otf:<task> <param1>=<value1> <param1>=<value1>
.
Take Note of special variables for creating Taskfile.