termcast
Record and replay interactive terminal sessions
Installation
dagger install github.com/shykes/daggerverse/termcast@v0.2.1Entrypoint
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| width | Integer ! | 80 | No description provided |
| height | Integer ! | 24 | No description provided |
| key | Secret | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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()
}clock() 🔗
Time elapsed since beginning of the session, in milliseconds
Return Type
Integer ! Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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)
}keystroke() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| data | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 call \
--width integer --height integer keystroke --data stringfunc (m *MyModule) Example(width int, height int, data string) *dagger.Termcast {
return dag.
Termcast(width, height).
Keystroke(data)
}@function
def example(width: int, height: int, data: str) -> dagger.Termcast:
return (
dag.termcast(width, height)
.keystroke(data)
)@func()
example(width: number, height: number, data: string): Termcast {
return dag
.termcast(width, height)
.keystroke(data)
}enter() 🔗
Simulate pressing the enter key
Return Type
Termcast ! Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 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()
}backspace() 🔗
Simulate pressing the backspace key
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repeat | Integer ! | 1 | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 call \
--width integer --height integer backspace --repeat integerfunc (m *MyModule) Example(width int, height int, repeat int) *dagger.Termcast {
return dag.
Termcast(width, height).
Backspace(repeat)
}@function
def example(width: int, height: int, repeat: int) -> dagger.Termcast:
return (
dag.termcast(width, height)
.backspace(repeat)
)@func()
example(width: number, height: number, repeat: number): Termcast {
return dag
.termcast(width, height)
.backspace(repeat)
}encode() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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@e298c26a4995a3741c9a7e42768df6bf28948475 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()
}decode() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| data | String ! | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 call \
--width integer --height integer decode --data stringfunc (m *MyModule) Example(width int, height int, data string) *dagger.Termcast {
return dag.
Termcast(width, height).
Decode(data)
}@function
def example(width: int, height: int, data: str) -> dagger.Termcast:
return (
dag.termcast(width, height)
.decode(data)
)@func()
example(width: number, height: number, data: string): Termcast {
return dag
.termcast(width, height)
.decode(data)
}imagine() 🔗
Return Type
Termcast !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prompt | String ! | "surprise me! an epic interactive session with a shell, language repl or database repl of your choice. the more exotic the better. Not python!" | No description provided |
Example
dagger -m github.com/shykes/daggerverse/termcast@e298c26a4995a3741c9a7e42768df6bf28948475 call \
--width integer --height integer imagine --prompt stringfunc (m *MyModule) Example(width int, height int, prompt string) *dagger.Termcast {
return dag.
Termcast(width, height).
Imagine(prompt)
}@function
def example(width: int, height: int, prompt: str) -> dagger.Termcast:
return (
dag.termcast(width, height)
.imagine(prompt)
)@func()
example(width: number, height: number, prompt: string): Termcast {
return dag
.termcast(width, height)
.imagine(prompt)
}