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@83d545f520210af71993263c87abaadbf9f42a5e

Entrypoint

Return Type
Pkgx
Example
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@83d545f520210af71993263c87abaadbf9f42a5e 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@83d545f520210af71993263c87abaadbf9f42a5e 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()
}