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.0
Entrypoint
Return Type
Termcast !
Arguments
Name | Type | Description |
---|---|---|
width | Integer ! | No description provided |
height | Integer ! | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@cf05b5520cba9cd29226c398875f38c6f4ae86ed call \
--width integer --height integer
func (m *myModule) example(width int, height int) *Termcast {
return dag.
Termcast(width, height)
}
@function
def example(width: int, height: int) -> dag.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 title
func (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 height
func (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 width
func (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 events
func (m *myModule) example(width int, height int) []*TermcastEvent {
return dag.
Termcast(width, height).
Events()
}
@function
def example(width: int, height: int) -> List[dag.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 clock
func (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 string
func (m *myModule) example(width int, height int, data string) *Termcast {
return dag.
Termcast(width, height).
Print(data)
}
@function
def example(width: int, height: int, data: str) -> dag.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 *Termcast) *Termcast {
return dag.
Termcast(width, height).
Append(other)
}
@function
def example(width: int, height: int, other: dag.Termcast) -> dag.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 integer
func (m *myModule) example(width int, height int, min int, max int) *Termcast {
return dag.
Termcast(width, height).
WaitRandom(min, max)
}
@function
def example(width: int, height: int, min: int, max: int) -> dag.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 integer
func (m *myModule) example(width int, height int, ms int) *Termcast {
return dag.
Termcast(width, height).
Wait(ms)
}
@function
def example(width: int, height: int, ms: int) -> dag.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 string
func (m *myModule) example(width int, height int, data string) *Termcast {
return dag.
Termcast(width, height).
Keystrokes(data)
}
@function
def example(width: int, height: int, data: str) -> dag.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 enter
func (m *myModule) example(width int, height int) *Termcast {
return dag.
Termcast(width, height).
Enter()
}
@function
def example(width: int, height: int) -> dag.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 encode
func (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 castfile
func (m *myModule) example(width int, height int) *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 play
func (m *myModule) example(width int, height int) *Terminal {
return dag.
Termcast(width, height).
Play()
}
@function
def example(width: int, height: int) -> dag.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 demo
func (m *myModule) example(width int, height int) *Termcast {
return dag.
Termcast(width, height).
Demo()
}
@function
def example(width: int, height: int) -> dag.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 gif
func (m *myModule) example(width int, height int) *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 string2
func (m *myModule) example(ctx context.Context, width int, height int, token *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 string2
func (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:MYSECRET
func (m *myModule) example(ctx context.Context, width int, height int, token *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 module
Function TermcastEvent.time is not accessible from the termcast module
Function TermcastEvent.time is not accessible from the termcast module
Function TermcastEvent.time is not accessible from the termcast module
code() 🔗
Return Type
String !
Example
Function TermcastEvent.code is not accessible from the termcast module
Function TermcastEvent.code is not accessible from the termcast module
Function TermcastEvent.code is not accessible from the termcast module
Function TermcastEvent.code is not accessible from the termcast module
data() 🔗
Return Type
String !
Example
Function TermcastEvent.data is not accessible from the termcast module
Function TermcastEvent.data is not accessible from the termcast module
Function TermcastEvent.data is not accessible from the termcast module
Function TermcastEvent.data is not accessible from the termcast module
encode() 🔗
Return Type
String !
Example
Function TermcastEvent.encode is not accessible from the termcast module
Function TermcastEvent.encode is not accessible from the termcast module
Function TermcastEvent.encode is not accessible from the termcast module
Function TermcastEvent.encode is not accessible from the termcast module