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.2.0Entrypoint
Return Type
Ponysay ! Example
dagger -m github.com/purpleclay/daggerverse/ponysay@6bd87ae249e7a019d5699a640c741591920aceca call \
func (m *MyModule) Example() *dagger.Ponysay {
return dag.
Ponysay()
}@function
def example() -> dagger.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@6bd87ae249e7a019d5699a640c741591920aceca call \
sayfunc (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@6bd87ae249e7a019d5699a640c741591920aceca call \
inspire-mefunc (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()
}