Dagger
Search

devenv

This module provides a set of functions to run a command inside devenv shell, return a container with devenv installed, and build the devenv shell and run any pre-commit hooks.

Installation

dagger install github.com/tsirysndr/daggerverse/devenv@e8bed26dfefaaf4ef3d00958965575131f34c69c

Entrypoint

Return Type
Devenv
Example
dagger -m github.com/tsirysndr/daggerverse/devenv@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *Devenv  {
	return dag.
			Devenv()
}
@function
def example() -> dag.Devenv:
	return (
		dag.devenv()
	)
@func()
example(): Devenv {
	return dag
		.devenv()
}

Types

Devenv 🔗

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/devenv@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 run --command string
func (m *myModule) example(command string) *Container  {
	return dag.
			Devenv().
			Run(command)
}
@function
def example(command: str) -> dagger.Container:
	return (
		dag.devenv()
		.run(command)
	)
@func()
example(command: string): Container {
	return dag
		.devenv()
		.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/devenv@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 dev
func (m *myModule) example() *Container  {
	return dag.
			Devenv().
			Dev()
}
@function
def example() -> dagger.Container:
	return (
		dag.devenv()
		.dev()
	)
@func()
example(): Container {
	return dag
		.devenv()
		.dev()
}

ci() 🔗

Build the devenv shell and run any pre-commit hooks

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devenv@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 ci
func (m *myModule) example() *Container  {
	return dag.
			Devenv().
			Ci()
}
@function
def example() -> dagger.Container:
	return (
		dag.devenv()
		.ci()
	)
@func()
example(): Container {
	return dag
		.devenv()
		.ci()
}