dsh
No long description provided.
Installation
dagger install github.com/shykes/daggerverse/dsh@v0.1.0Entrypoint
Return Type
Dsh Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
func (m *MyModule) Example() *dagger.Dsh {
return dag.
Dsh()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | ModuleSource ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, source *dagger.ModuleSource) string {
return dag.
Dsh().
SaveModule(ctx, source)
}@function
async def example(source: dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| state | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
load-module --state stringfunc (m *MyModule) Example(state string) *dagger.ModuleSource {
return dag.
Dsh().
LoadModule(state)
}@function
def example(state: str) -> dagger.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 \
containerfunc (m *MyModule) Example() *dagger.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 \
toolfunc (m *MyModule) Example() *dagger.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 \
shellfunc (m *MyModule) Example() *dagger.Terminal {
return dag.
Dsh().
Shell()
}@function
def example() -> dagger.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 \
debugfunc (m *MyModule) Example() *dagger.Terminal {
return dag.
Dsh().
Debug()
}@function
def example() -> dagger.Terminal:
return (
dag.dsh()
.debug()
)@func()
example(): Terminal {
return dag
.dsh()
.debug()
}dagger() 🔗
Call the dagger CLI in a container
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/dsh@19736976f0770a9fefe6ff976cac5dd4212539dc call \
dagger --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.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)
}