termcast
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/shykes/daggerverse/termcast@v0.1.0Entrypoint
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| width | Integer ! | 80 | No description provided |
| height | Integer ! | 24 | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integerfunc (m *MyModule) Example(width int, height int) *dagger.Termcast {
return dag.
Termcast(width, height)
}@function
def example(width: int, height: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
)@func()
example(width: number, height: number): Termcast {
return dag
.termcast(width, height)
}Types
Termcast 🔗
title() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer titlefunc (m *MyModule) Example(ctx context.Context, width int, height int) string {
return dag.
Termcast(width, height).
Title(ctx)
}@function
async def example(width: int, height: int) -> str:
return await (
dag.termcast(width, height)
.title()
)@func()
async example(width: number, height: number): Promise<string> {
return dag
.termcast(width, height)
.title()
}height() 🔗
Return Type
Integer ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer heightfunc (m *MyModule) Example(ctx context.Context, width int, height int) int {
return dag.
Termcast(width, height).
Height(ctx)
}@function
async def example(width: int, height: int) -> int:
return await (
dag.termcast(width, height)
.height()
)@func()
async example(width: number, height: number): Promise<number> {
return dag
.termcast(width, height)
.height()
}width() 🔗
Return Type
Integer ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer widthfunc (m *MyModule) Example(ctx context.Context, width int, height int) int {
return dag.
Termcast(width, height).
Width(ctx)
}@function
async def example(width: int, height: int) -> int:
return await (
dag.termcast(width, height)
.width()
)@func()
async example(width: number, height: number): Promise<number> {
return dag
.termcast(width, height)
.width()
}events() 🔗
Return Type
[Event ! ] ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer eventsfunc (m *MyModule) Example(width int, height int) []*dagger.TermcastEvent {
return dag.
Termcast(width, height).
Events()
}@function
def example(width: int, height: int) -> List[dagger.TermcastEvent]:
return (
dag.termcast(width, height)
.events()
)@func()
example(width: number, height: number): TermcastEvent[] {
return dag
.termcast(width, height)
.events()
}clock() 🔗
Time elapsed since beginning of the session, in milliseconds
Return Type
Integer ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer clockfunc (m *MyModule) Example(ctx context.Context, width int, height int) int {
return dag.
Termcast(width, height).
Clock(ctx)
}@function
async def example(width: int, height: int) -> int:
return await (
dag.termcast(width, height)
.clock()
)@func()
async example(width: number, height: number): Promise<number> {
return dag
.termcast(width, height)
.clock()
}print() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| data | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer print --data stringfunc (m *MyModule) Example(width int, height int, data string) *dagger.Termcast {
return dag.
Termcast(width, height).
Print(data)
}@function
def example(width: int, height: int, data: str) -> dagger.Termcast:
return (
dag.termcast(width, height)
.print(data)
)@func()
example(width: number, height: number, data: string): Termcast {
return dag
.termcast(width, height)
.print(data)
}append() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| other | Termcast ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(width int, height int, other *dagger.Termcast) *dagger.Termcast {
return dag.
Termcast(width, height).
Append(other)
}@function
def example(width: int, height: int, other: dagger.Termcast) -> dagger.Termcast:
return (
dag.termcast(width, height)
.append(other)
)@func()
example(width: number, height: number, other: Termcast): Termcast {
return dag
.termcast(width, height)
.append(other)
}waitRandom() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| min | Integer ! | - | No description provided |
| max | Integer ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer wait-random --min integer --max integerfunc (m *MyModule) Example(width int, height int, min int, max int) *dagger.Termcast {
return dag.
Termcast(width, height).
WaitRandom(min, max)
}@function
def example(width: int, height: int, min: int, max: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
.wait_random(min, max)
)@func()
example(width: number, height: number, min: number, max: number): Termcast {
return dag
.termcast(width, height)
.waitRandom(min, max)
}wait() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ms | Integer ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer wait --ms integerfunc (m *MyModule) Example(width int, height int, ms int) *dagger.Termcast {
return dag.
Termcast(width, height).
Wait(ms)
}@function
def example(width: int, height: int, ms: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
.wait(ms)
)@func()
example(width: number, height: number, ms: number): Termcast {
return dag
.termcast(width, height)
.wait(ms)
}keystrokes() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| data | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer keystrokes --data stringfunc (m *MyModule) Example(width int, height int, data string) *dagger.Termcast {
return dag.
Termcast(width, height).
Keystrokes(data)
}@function
def example(width: int, height: int, data: str) -> dagger.Termcast:
return (
dag.termcast(width, height)
.keystrokes(data)
)@func()
example(width: number, height: number, data: string): Termcast {
return dag
.termcast(width, height)
.keystrokes(data)
}enter() 🔗
Simulate a human pressing the enter key
Return Type
Termcast ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer enterfunc (m *MyModule) Example(width int, height int) *dagger.Termcast {
return dag.
Termcast(width, height).
Enter()
}@function
def example(width: int, height: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
.enter()
)@func()
example(width: number, height: number): Termcast {
return dag
.termcast(width, height)
.enter()
}encode() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer encodefunc (m *MyModule) Example(ctx context.Context, width int, height int) string {
return dag.
Termcast(width, height).
Encode(ctx)
}@function
async def example(width: int, height: int) -> str:
return await (
dag.termcast(width, height)
.encode()
)@func()
async example(width: number, height: number): Promise<string> {
return dag
.termcast(width, height)
.encode()
}castfile() 🔗
Return Type
File ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer castfilefunc (m *MyModule) Example(width int, height int) *dagger.File {
return dag.
Termcast(width, height).
Castfile()
}@function
def example(width: int, height: int) -> dagger.File:
return (
dag.termcast(width, height)
.castfile()
)@func()
example(width: number, height: number): File {
return dag
.termcast(width, height)
.castfile()
}play() 🔗
Return Type
Terminal ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer playfunc (m *MyModule) Example(width int, height int) *dagger.Terminal {
return dag.
Termcast(width, height).
Play()
}@function
def example(width: int, height: int) -> dagger.Terminal:
return (
dag.termcast(width, height)
.play()
)@func()
example(width: number, height: number): Terminal {
return dag
.termcast(width, height)
.play()
}demo() 🔗
Return Type
Termcast ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer demofunc (m *MyModule) Example(width int, height int) *dagger.Termcast {
return dag.
Termcast(width, height).
Demo()
}@function
def example(width: int, height: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
.demo()
)@func()
example(width: number, height: number): Termcast {
return dag
.termcast(width, height)
.demo()
}gif() 🔗
Return Type
File ! Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer giffunc (m *MyModule) Example(width int, height int) *dagger.File {
return dag.
Termcast(width, height).
Gif()
}@function
def example(width: int, height: int) -> dagger.File:
return (
dag.termcast(width, height)
.gif()
)@func()
example(width: number, height: number): File {
return dag
.termcast(width, height)
.gif()
}ai() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | No description provided |
| steps | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer ai --token env:MYSECRET --steps string1 --steps string2func (m *MyModule) Example(ctx context.Context, width int, height int, token *dagger.Secret, steps []string) string {
return dag.
Termcast(width, height).
Ai(ctx, token, steps)
}@function
async def example(width: int, height: int, token: dagger.Secret, steps: List[str]) -> str:
return await (
dag.termcast(width, height)
.ai(token, steps)
)@func()
async example(width: number, height: number, token: Secret, steps: string[]): Promise<string> {
return dag
.termcast(width, height)
.ai(token, steps)
}rawPrompt() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| steps | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer raw-prompt --steps string1 --steps string2func (m *MyModule) Example(ctx context.Context, width int, height int, steps []string) string {
return dag.
Termcast(width, height).
RawPrompt(ctx, steps)
}@function
async def example(width: int, height: int, steps: List[str]) -> str:
return await (
dag.termcast(width, height)
.raw_prompt(steps)
)@func()
async example(width: number, height: number, steps: string[]): Promise<string> {
return dag
.termcast(width, height)
.rawPrompt(steps)
}example() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer example --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, width int, height int, token *dagger.Secret) string {
return dag.
Termcast(width, height).
Example(ctx, token)
}@function
async def example(width: int, height: int, token: dagger.Secret) -> str:
return await (
dag.termcast(width, height)
.example(token)
)@func()
async example(width: number, height: number, token: Secret): Promise<string> {
return dag
.termcast(width, height)
.example(token)
}Event 🔗
time() 🔗
milliseconds
Return Type
Integer ! Example
Function TermcastEvent.time is not accessible from the termcast moduleFunction TermcastEvent.time is not accessible from the termcast moduleFunction TermcastEvent.time is not accessible from the termcast moduleFunction TermcastEvent.time is not accessible from the termcast modulecode() 🔗
Return Type
String ! Example
Function TermcastEvent.code is not accessible from the termcast moduleFunction TermcastEvent.code is not accessible from the termcast moduleFunction TermcastEvent.code is not accessible from the termcast moduleFunction TermcastEvent.code is not accessible from the termcast moduledata() 🔗
Return Type
String ! Example
Function TermcastEvent.data is not accessible from the termcast moduleFunction TermcastEvent.data is not accessible from the termcast moduleFunction TermcastEvent.data is not accessible from the termcast moduleFunction TermcastEvent.data is not accessible from the termcast moduleencode() 🔗
Return Type
String ! Example
Function TermcastEvent.encode is not accessible from the termcast moduleFunction TermcastEvent.encode is not accessible from the termcast moduleFunction TermcastEvent.encode is not accessible from the termcast moduleFunction TermcastEvent.encode is not accessible from the termcast module