demo1
This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.
The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.
Installation
dagger install github.com/Prashant-Bhapkar/demo1@3c33b5a0aea713a6fb5cb99cc378186955e1284d
Entrypoint
Return Type
Demo1 !
Example
dagger -m github.com/Prashant-Bhapkar/demo1@3c33b5a0aea713a6fb5cb99cc378186955e1284d call \
func (m *myModule) example() *Demo1 {
return dag.
Demo1()
}
@function
def example() -> dag.Demo1:
return (
dag.demo1()
)
@func()
example(): Demo1 {
return dag
.demo1()
}
Types
Demo1 🔗
helloWorld() 🔗
Return Type
String !
Example
dagger -m github.com/Prashant-Bhapkar/demo1@3c33b5a0aea713a6fb5cb99cc378186955e1284d call \
hello-world
func (m *myModule) example(ctx context.Context) string {
return dag.
Demo1().
HelloWorld(ctx)
}
@function
async def example() -> str:
return await (
dag.demo1()
.hello_world()
)
@func()
async example(): Promise<string> {
return dag
.demo1()
.helloWorld()
}