Dagger
Search

dsh

No long description provided.

Installation

dagger install github.com/shykes/daggerverse/dsh@v0.1.0

Entrypoint

Return Type
Dsh
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
func (m *myModule) example() *Dsh  {
	return dag.
			Dsh()
}
@function
def example() -> dag.Dsh:
	return (
		dag.dsh()
	)
@func()
example(): Dsh {
	return dag
		.dsh()
}

Types

Dsh 🔗

A shell for interacting with Dagger

saveModule() 🔗

Load a module for introspection

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceModuleSource !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(ctx context.Context, source *ModuleSource) string  {
	return dag.
			Dsh().
			SaveModule(ctx, source)
}
@function
async def example(source: dag.ModuleSource) -> str:
	return await (
		dag.dsh()
		.save_module(source)
	)
@func()
async example(source: ModuleSource): Promise<string> {
	return dag
		.dsh()
		.saveModule(source)
}

loadModule() 🔗

Return Type
ModuleSource !
Arguments
NameTypeDefault ValueDescription
stateString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 load-module --state string
func (m *myModule) example(state string) *ModuleSource  {
	return dag.
			Dsh().
			LoadModule(state)
}
@function
def example(state: str) -> dag.ModuleSource:
	return (
		dag.dsh()
		.load_module(state)
	)
@func()
example(state: string): ModuleSource {
	return dag
		.dsh()
		.loadModule(state)
}

container() 🔗

Return Type
Container !
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Dsh().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.dsh()
		.container()
	)
@func()
example(): Container {
	return dag
		.dsh()
		.container()
}

tool() 🔗

Return Type
File !
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 tool
func (m *myModule) example() *File  {
	return dag.
			Dsh().
			Tool()
}
@function
def example() -> dagger.File:
	return (
		dag.dsh()
		.tool()
	)
@func()
example(): File {
	return dag
		.dsh()
		.tool()
}

shell() 🔗

Return Type
Terminal !
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 shell
func (m *myModule) example() *Terminal  {
	return dag.
			Dsh().
			Shell()
}
@function
def example() -> dag.Terminal:
	return (
		dag.dsh()
		.shell()
	)
@func()
example(): Terminal {
	return dag
		.dsh()
		.shell()
}

debug() 🔗

Return Type
Terminal !
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 debug
func (m *myModule) example() *Terminal  {
	return dag.
			Dsh().
			Debug()
}
@function
def example() -> dag.Terminal:
	return (
		dag.dsh()
		.debug()
	)
@func()
example(): Terminal {
	return dag
		.dsh()
		.debug()
}

dagger() 🔗

Call the dagger CLI in a container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[String ! ] !-No description provided
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
 dagger --args string1 --args string2
func (m *myModule) example(args []string) *Container  {
	return dag.
			Dsh().
			Dagger(args)
}
@function
def example(args: List[str]) -> dagger.Container:
	return (
		dag.dsh()
		.dagger(args)
	)
@func()
example(args: string[]): Container {
	return dag
		.dsh()
		.dagger(args)
}