ponysay
Cow's talking, that is so last week... Ponies talking, well that is so today!Installation
dagger install github.com/purpleclay/daggerverse/ponysay@v0.1.0
Entrypoint
Return Type
Ponysay !
Example
dagger -m github.com/purpleclay/daggerverse/ponysay@3e5a6dfeece9e1f9015fcd321f62c2210ecf17f8 call \
func (m *myModule) example() *Ponysay {
return dag.
Ponysay()
}
@function
def example() -> dag.Ponysay:
return (
dag.ponysay()
)
@func()
example(): Ponysay {
return dag
.ponysay()
}
Types
Ponysay 🔗
Ponysay Dagger module
say() 🔗
Forgot cows! Lets get a Pony to say something instead
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
msg | String | "Dagger is Awesome!" | give the pony something fun to say |
Example
dagger -m github.com/purpleclay/daggerverse/ponysay@3e5a6dfeece9e1f9015fcd321f62c2210ecf17f8 call \
say
func (m *myModule) example(ctx context.Context) string {
return dag.
Ponysay().
Say(ctx)
}
@function
async def example() -> str:
return await (
dag.ponysay()
.say()
)
@func()
async example(): Promise<string> {
return dag
.ponysay()
.say()
}
inspireMe() 🔗
Need an inspirational quote. These ponies have got you covered.
Return Type
String !
Example
dagger -m github.com/purpleclay/daggerverse/ponysay@3e5a6dfeece9e1f9015fcd321f62c2210ecf17f8 call \
inspire-me
func (m *myModule) example(ctx context.Context) string {
return dag.
Ponysay().
InspireMe(ctx)
}
@function
async def example() -> str:
return await (
dag.ponysay()
.inspire_me()
)
@func()
async example(): Promise<string> {
return dag
.ponysay()
.inspireMe()
}