Dagger
Search

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.2.0

Entrypoint

Return Type
Termcast !
Arguments
NameTypeDescription
widthInteger !No description provided
heightInteger !No description provided
keySecret No description provided
Example
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@3f11265b88005b8c9299d72f233e1cd8b588b737 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@3f11265b88005b8c9299d72f233e1cd8b588b737 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@3f11265b88005b8c9299d72f233e1cd8b588b737 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()
}

clock() 🔗

Time elapsed since beginning of the session, in milliseconds

Return Type
Integer !
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 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
NameTypeDefault ValueDescription
dataString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer print --data string \
 encode
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
NameTypeDefault ValueDescription
otherTermcast !-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
NameTypeDefault ValueDescription
minInteger !-No description provided
maxInteger !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer wait-random --min integer --max integer \
 encode
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
NameTypeDefault ValueDescription
msInteger !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer wait --ms integer \
 encode
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
NameTypeDefault ValueDescription
dataString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer keystrokes --data string \
 encode
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)
}

keystroke() 🔗

Return Type
Termcast !
Arguments
NameTypeDefault ValueDescription
dataString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer keystroke --data string \
 encode
func (m *myModule) example(width int, height int, data string) *Termcast  {
	return dag.
			Termcast(width, height).
			Keystroke(data)
}
@function
def example(width: int, height: int, data: str) -> dag.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@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer enter \
 encode
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()
}

backspace() 🔗

Simulate pressing the backspace key

Return Type
Termcast !
Arguments
NameTypeDefault ValueDescription
repeatInteger !1No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer backspace --repeat integer \
 encode
func (m *myModule) example(width int, height int, repeat int) *Termcast  {
	return dag.
			Termcast(width, height).
			Backspace(repeat)
}
@function
def example(width: int, height: int, repeat: int) -> dag.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@3f11265b88005b8c9299d72f233e1cd8b588b737 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@3f11265b88005b8c9299d72f233e1cd8b588b737 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
Function Termcast.play is not accessible from the termcast module
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@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer demo \
 encode
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@3f11265b88005b8c9299d72f233e1cd8b588b737 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()
}

decode() 🔗

Return Type
Termcast !
Arguments
NameTypeDefault ValueDescription
dataString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/termcast@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer decode --data string \
 encode
func (m *myModule) example(width int, height int, data string) *Termcast  {
	return dag.
			Termcast(width, height).
			Decode(data)
}
@function
def example(width: int, height: int, data: str) -> dag.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
NameTypeDefault ValueDescription
promptString !"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@3f11265b88005b8c9299d72f233e1cd8b588b737 call \
 --width integer --height integer imagine --prompt string \
 encode
func (m *myModule) example(width int, height int, prompt string) *Termcast  {
	return dag.
			Termcast(width, height).
			Imagine(prompt)
}
@function
def example(width: int, height: int, prompt: str) -> dag.Termcast:
	return (
		dag.termcast(width, height)
		.imagine(prompt)
	)
@func()
example(width: number, height: number, prompt: string): Termcast {
	return dag
		.termcast(width, height)
		.imagine(prompt)
}