Dagger
Search

pkgx

This module provides a set of functions to install packages and to create a development environment with pkgx installed.

Installation

dagger install github.com/tsirysndr/daggerverse/pkgx@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6

Entrypoint

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

Types

Pkgx 🔗

install() 🔗

Install packages in a Docker Container and return it

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

dev() 🔗

Activate developer environment in a Docker Container and return it

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