Dagger
Search

commanders

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/dciangot/daggerverse/commanders@485b0ff7d0225c3aecb6f198fd91cc804f6d02f6

Entrypoint

Return Type
Commanders !
Example
dagger -m github.com/dciangot/daggerverse/commanders@485b0ff7d0225c3aecb6f198fd91cc804f6d02f6 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() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
usernameString !-No description provided
Example
dagger -m github.com/dciangot/daggerverse/commanders@485b0ff7d0225c3aecb6f198fd91cc804f6d02f6 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() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
usernameString !-No description provided
Example
dagger -m github.com/dciangot/daggerverse/commanders@485b0ff7d0225c3aecb6f198fd91cc804f6d02f6 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() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Example
dagger -m github.com/dciangot/daggerverse/commanders@485b0ff7d0225c3aecb6f198fd91cc804f6d02f6 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()
}