moddesc
Package main is a package level description.
Installation
dagger install github.com/vito/daggerverse/moddesc@5b9647d7753300826ebe41bc661ecbb7ed9a876b
Entrypoint
Return Type
Moddesc
Example
dagger -m github.com/vito/daggerverse/moddesc@5b9647d7753300826ebe41bc661ecbb7ed9a876b call \
func (m *myModule) example() *Moddesc {
return dag.
Moddesc()
}
@function
def example() -> dag.Moddesc:
return (
dag.moddesc()
)
@func()
example(): Moddesc {
return dag
.moddesc()
}
Types
Moddesc 🔗
Moddesc is a module with a description.
containerEcho() 🔗
example usage: “dagger call container-echo –string-arg yo”
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/moddesc@5b9647d7753300826ebe41bc661ecbb7ed9a876b call \
container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container {
return dag.
Moddesc().
ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
return (
dag.moddesc()
.container_echo(string_arg)
)
@func()
example(stringArg: string): Container {
return dag
.moddesc()
.containerEcho(stringArg)
}
grepDir() 🔗
example usage: “dagger call grep-dir –directory-arg . –pattern GrepDir”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
pattern | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/moddesc@5b9647d7753300826ebe41bc661ecbb7ed9a876b call \
grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string {
return dag.
Moddesc().
GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
return await (
dag.moddesc()
.grep_dir(directory_arg, pattern)
)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
return dag
.moddesc()
.grepDir(directoryArg, pattern)
}