Module Ctrutils for Dagger

A simple Dagger place the description of the module here
Configuration π οΈ
Through the Dagger CLI, or by using it directly within your module, you can configure the following options:
- βοΈ
ctr: The container to use as a base container. If not specified, a new container is created.
- βοΈ
version: The version of the Go image to use. Defaults to latest.
- βοΈ
image: The Go image to use. Defaults to golang:alpine.
Features π¨
| Command or functionality |
Command |
Example |
Status |
| Run Go Tests |
run |
dagger call |
β
|
Using the Ctrutils Module π
Place the description of the module here
Usage through the Dagger CLI π
List all the functions available in the module:
# enter into the module's directory
cd ctrutils
# list all the functions available in the module
dagger develop && dagger functions
Call a function:
# call a function
# dagger call <function-name> [arguments]
dagger call github.com/excoriate/daggerverse/ctrutils@version <function-name> [arguments]
Testing π§ͺ
This module includes a testing module that aims to test the functionality of the Ctrutils module. The tests are written in Go and can be run using the following command:
## Run the tests using the just command
just test ctrutils
Developer Experience π οΈ
If you'd like to contribute, mostly we use Just to automate tasks and Nix to manage the development environment. You can use the following commands to get started:
# initialize the pre-commit hooks
just init
# run CI or common things locally
just golint ctrutils
# run the tests
just test ctrutils
# Run the entire CI tasks locally
just cilocal ctrutils
NOTE: The just command entails the use of the Justfile for task automation.