commanders
This is to explore Commander super-powers and to hear their advice.Do not use it improperly, we will find you.
Installation
dagger install github.com/dciangot/daggerverse/commanders@6b902caa724a10bf79af5f77971ed0813fa02cda
Entrypoint
Return Type
Commanders !
Example
dagger -m github.com/dciangot/daggerverse/commanders@6b902caa724a10bf79af5f77971ed0813fa02cda call \
func (m *myModule) example() *Commanders {
return dag.
Commanders()
}
@function
def example() -> dag.Commanders:
return (
dag.commanders()
)
@func()
example(): Commanders {
return dag
.commanders()
}
Types
Commanders 🔗
commander() 🔗
Call your favorite commander to see his/her capabilities
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
username | String ! | - | No description provided |
Example
dagger -m github.com/dciangot/daggerverse/commanders@6b902caa724a10bf79af5f77971ed0813fa02cda call \
commander --username string
func (m *myModule) example(ctx context.Context, username string) string {
return dag.
Commanders().
Commander(ctx, username)
}
@function
async def example(username: str) -> str:
return await (
dag.commanders()
.commander(username)
)
@func()
async example(username: string): Promise<string> {
return dag
.commanders()
.commander(username)
}
commanderSays() 🔗
Ask your favorite commander for advice
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
username | String ! | - | No description provided |
Example
dagger -m github.com/dciangot/daggerverse/commanders@6b902caa724a10bf79af5f77971ed0813fa02cda call \
commander-says --username string
func (m *myModule) example(ctx context.Context, username string) string {
return dag.
Commanders().
CommanderSays(ctx, username)
}
@function
async def example(username: str) -> str:
return await (
dag.commanders()
.commander_says(username)
)
@func()
async example(username: string): Promise<string> {
return dag
.commanders()
.commanderSays(username)
}
listCommanders() 🔗
List all commanders
Return Type
String !
Example
dagger -m github.com/dciangot/daggerverse/commanders@6b902caa724a10bf79af5f77971ed0813fa02cda call \
list-commanders
func (m *myModule) example(ctx context.Context) string {
return dag.
Commanders().
ListCommanders(ctx)
}
@function
async def example() -> str:
return await (
dag.commanders()
.list_commanders()
)
@func()
async example(): Promise<string> {
return dag
.commanders()
.listCommanders()
}