dagger-shared-module-functions
No long description provided.
Installation
dagger install gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@882c474226b9cd459e32426c003330d1c88f7b09
Entrypoint
Return Type
DaggerSharedModuleFunctions !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@882c474226b9cd459e32426c003330d1c88f7b09 call \
func (m *myModule) example() *DaggerSharedModuleFunctions {
return dag.
DaggerSharedModuleFunctions()
}
@function
def example() -> dag.DaggerSharedModuleFunctions:
return (
dag.dagger_shared_module_functions()
)
@func()
example(): DaggerSharedModuleFunctions {
return dag
.daggerSharedModuleFunctions()
}
Types
DaggerSharedModuleFunctions 🔗
myFunction() 🔗
My test Function
Return Type
String !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@882c474226b9cd459e32426c003330d1c88f7b09 call \
my-function
func (m *myModule) example(ctx context.Context) string {
return dag.
DaggerSharedModuleFunctions().
MyFunction(ctx)
}
@function
async def example() -> str:
return await (
dag.dagger_shared_module_functions()
.my_function()
)
@func()
async example(): Promise<string> {
return dag
.daggerSharedModuleFunctions()
.myFunction()
}
containerEcho() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@882c474226b9cd459e32426c003330d1c88f7b09 call \
container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container {
return dag.
DaggerSharedModuleFunctions().
ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
return (
dag.dagger_shared_module_functions()
.container_echo(string_arg)
)
@func()
example(stringArg: string): Container {
return dag
.daggerSharedModuleFunctions()
.containerEcho(stringArg)
}
grepDir() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | A directory. |
pattern | String ! | - | No description provided |
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@882c474226b9cd459e32426c003330d1c88f7b09 call \
grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string {
return dag.
DaggerSharedModuleFunctions().
GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
return await (
dag.dagger_shared_module_functions()
.grep_dir(directory_arg, pattern)
)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
return dag
.daggerSharedModuleFunctions()
.grepDir(directoryArg, pattern)
}