devbox
This module provides a set of functions to run commands inside devbox shell and to create a development environment with devbox installed.
Installation
dagger install github.com/tsirysndr/daggerverse/devbox@83d545f520210af71993263c87abaadbf9f42a5e
Types
Devbox 🔗
run() 🔗
Run a command
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
command | String ! | - | No description provided |
Example
func (m *myModule) example(command string) *Container {
return dag.
Devbox().
Run(command)
}
dev() 🔗
Return a container with a dev environment
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
func (m *myModule) example() *Container {
return dag.
Devbox().
Dev()
}
install() 🔗
Install packages in a Docker Container and return it
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
pkgs | [String ! ] ! | - | No description provided |
Example
func (m *myModule) example(pkgs []string) *Container {
return dag.
Devbox().
Install(pkgs)
}