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@4ad5ef96c6927036d96bbb5fc71824e8bb115d26
Entrypoint
Return Type
Devbox
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
command | String ! | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
pkgs | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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)
}