Dagger
Search

flox

This module provides a set of functions to run flox commands and to create a development environment with flox installed.

Installation

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

Entrypoint

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

Types

Flox 🔗

dev() 🔗

Return a container with flox installed

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/flox@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 dev
func (m *myModule) example() *Container  {
	return dag.
			Flox().
			Dev()
}
@function
def example() -> dagger.Container:
	return (
		dag.flox()
		.dev()
	)
@func()
example(): Container {
	return dag
		.flox()
		.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/flox@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 install --pkgs string1 --pkgs string2
func (m *myModule) example(pkgs []string) *Container  {
	return dag.
			Flox().
			Install(pkgs)
}
@function
def example(pkgs: List[str]) -> dagger.Container:
	return (
		dag.flox()
		.install(pkgs)
	)
@func()
example(pkgs: string[]): Container {
	return dag
		.flox()
		.install(pkgs)
}