Dagger
Search

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@4a510a98bcc63e0d4518fc88ab51fc46e6a9debb

Entrypoint

Return Type
Devbox
Example
func (m *myModule) example() *Devbox  {
	return dag.
			Devbox()
}
@function
def example() -> dag.Devbox:
	return (
		dag.devbox()
	)
@func()
example(): Devbox {
	return dag
		.devbox()
}

Types

Devbox

run()

Run a command

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
commandString !-No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4a510a98bcc63e0d4518fc88ab51fc46e6a9debb call \
 run --command string
func (m *myModule) example(command string) *Container  {
	return dag.
			Devbox().
			Run(command)
}
@function
def example(command: str) -> dagger.Container:
	return (
		dag.devbox()
		.run(command)
	)
@func()
example(command: string): Container {
	return dag
		.devbox()
		.run(command)
}

dev()

Return a container with a dev environment

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4a510a98bcc63e0d4518fc88ab51fc46e6a9debb call \
 dev
func (m *myModule) example() *Container  {
	return dag.
			Devbox().
			Dev()
}
@function
def example() -> dagger.Container:
	return (
		dag.devbox()
		.dev()
	)
@func()
example(): Container {
	return dag
		.devbox()
		.dev()
}

install()

Install packages in a Docker Container and return it

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
pkgs[String ! ] !-No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4a510a98bcc63e0d4518fc88ab51fc46e6a9debb call \
 install --pkgs string1 --pkgs string2
func (m *myModule) example(pkgs []string) *Container  {
	return dag.
			Devbox().
			Install(pkgs)
}
@function
def example(pkgs: List[str]) -> dagger.Container:
	return (
		dag.devbox()
		.install(pkgs)
	)
@func()
example(pkgs: string[]): Container {
	return dag
		.devbox()
		.install(pkgs)
}