dagger-programmer
A generated module for DaggerProgrammer functions
Installation
dagger install github.com/kpenfound/dagger-programmer@df1ced09304c4a18a20bc226b7c783293e74be84
Entrypoint
Return Type
DaggerProgrammer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
model | String | null | LLM model to use |
daggerVersion | String ! | "v0.18.0" | version of the dagger CLI to use |
Example
dagger -m github.com/kpenfound/dagger-programmer@df1ced09304c4a18a20bc226b7c783293e74be84 call \
--dagger-version string
func (m *myModule) example(daggerVersion string) *DaggerProgrammer {
return dag.
DaggerProgrammer(daggerVersion)
}
@function
def example(dagger_version: str) -> dag.DaggerProgrammer:
return (
dag.dagger_programmer(dagger_version)
)
@func()
example(daggerVersion: string): DaggerProgrammer {
return dag
.daggerProgrammer(daggerVersion)
}
Types
DaggerProgrammer 🔗
translate() 🔗
Returns a dagger module in the specified language translated from the provided module
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
mod | Module ! | - | The dagger module to translate |
language | String ! | - | The language to translate the module to |
dependencies | [Directory ! ] ! | [] | Dependencies required for the module |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(daggerVersion string, mod *Module, language string, dependencies []*Directory) *Directory {
return dag.
DaggerProgrammer(daggerVersion).
Translate(mod, language, dependencies)
}
@function
def example(dagger_version: str, mod: dag.Module, language: str, dependencies: List[dagger.Directory]) -> dagger.Directory:
return (
dag.dagger_programmer(dagger_version)
.translate(mod, language, dependencies)
)
@func()
example(daggerVersion: string, mod: Module, language: string, dependencies: Directory[]): Directory {
return dag
.daggerProgrammer(daggerVersion)
.translate(mod, language, dependencies)
}
writeExamples() 🔗
Writes examples in all supported languages for the provided module and returns the directory containing them
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
mod | Module ! | - | The dagger module to write examples for |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(daggerVersion string, mod *Module) *Directory {
return dag.
DaggerProgrammer(daggerVersion).
WriteExamples(mod)
}
@function
def example(dagger_version: str, mod: dag.Module) -> dagger.Directory:
return (
dag.dagger_programmer(dagger_version)
.write_examples(mod)
)
@func()
example(daggerVersion: string, mod: Module): Directory {
return dag
.daggerProgrammer(daggerVersion)
.writeExamples(mod)
}