actions

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachAction

type AttachAction struct {
	// contains filtered or unexported fields
}

AttachAction reattaches to a running process with full PTY I/O.

func NewAttachAction

func NewAttachAction(client *services.ClientService) *AttachAction

NewAttachAction creates an AttachAction.

func (*AttachAction) Execute

func (a *AttachAction) Execute(c *cli.Context) error

Execute attaches the terminal to the process. Ctrl+] to detach.

type CleanAction

type CleanAction struct {
	// contains filtered or unexported fields
}

CleanAction removes finished/failed processes from the daemon.

func NewCleanAction

func NewCleanAction(client *services.ClientService) *CleanAction

NewCleanAction creates a CleanAction.

func (*CleanAction) Execute

func (a *CleanAction) Execute(c *cli.Context) error

Execute removes non-running processes, or with --all, stops and removes everything.

type DaemonAction

type DaemonAction struct {
	// contains filtered or unexported fields
}

DaemonAction starts the yoink daemon in the foreground.

func NewDaemonAction

func NewDaemonAction(sockPath string) *DaemonAction

NewDaemonAction creates a DaemonAction.

func (*DaemonAction) Execute

func (a *DaemonAction) Execute(c *cli.Context) error

Execute starts the daemon and blocks until shutdown.

type KillAction

type KillAction struct {
	// contains filtered or unexported fields
}

KillAction terminates a managed process.

func NewKillAction

func NewKillAction(client *services.ClientService) *KillAction

NewKillAction creates a KillAction.

func (*KillAction) Execute

func (a *KillAction) Execute(c *cli.Context) error

Execute sends SIGTERM (or SIGKILL with --force) to the process.

type LogAction

type LogAction struct {
	// contains filtered or unexported fields
}

LogAction shows recent output from a managed process.

func NewLogAction

func NewLogAction(client *services.ClientService) *LogAction

NewLogAction creates a LogAction.

func (*LogAction) Execute

func (a *LogAction) Execute(c *cli.Context) error

Execute prints the last N lines of output for the given process.

type LsAction

type LsAction struct {
	// contains filtered or unexported fields
}

LsAction lists all managed background processes.

func NewLsAction

func NewLsAction(client *services.ClientService) *LsAction

NewLsAction creates a LsAction.

func (*LsAction) Execute

func (a *LsAction) Execute(c *cli.Context) error

Execute lists all processes with their state.

type MCPAction added in v0.3.0

type MCPAction struct {
	// contains filtered or unexported fields
}

MCPAction serves the yoink daemon over the Model Context Protocol on stdio, so agents can manage background processes as native tools.

func NewMCPAction added in v0.3.0

func NewMCPAction(client *services.ClientService, version string) *MCPAction

NewMCPAction creates an MCPAction.

func (*MCPAction) Execute added in v0.3.0

func (a *MCPAction) Execute(_ *cli.Context) error

Execute serves MCP on stdio until the client disconnects.

Nothing here may write to stdout: it is the protocol stream.

type RunAction

type RunAction struct {
	// contains filtered or unexported fields
}

RunAction spawns a command in the background via the daemon.

func NewRunAction

func NewRunAction(client *services.ClientService) *RunAction

NewRunAction creates a RunAction.

func (*RunAction) Execute

func (a *RunAction) Execute(c *cli.Context) error

Execute spawns the given command and prints the process ID.

type SendAction

type SendAction struct {
	// contains filtered or unexported fields
}

SendAction sends input text to a running process.

func NewSendAction

func NewSendAction(client *services.ClientService, redacted bool) *SendAction

NewSendAction creates a SendAction.

func (*SendAction) Execute

func (a *SendAction) Execute(c *cli.Context) error

Execute sends the given text as stdin to the process.

type SnapshotAction

type SnapshotAction struct {
	// contains filtered or unexported fields
}

SnapshotAction renders the current VT100 screen of a process as plain text.

func NewSnapshotAction

func NewSnapshotAction(client *services.ClientService) *SnapshotAction

NewSnapshotAction creates a SnapshotAction.

func (*SnapshotAction) Execute

func (a *SnapshotAction) Execute(c *cli.Context) error

Execute prints the rendered screen of the process to stdout.

type VersionAction

type VersionAction struct {
	// contains filtered or unexported fields
}

VersionAction prints version information.

func NewVersionAction

func NewVersionAction(version, buildTime, gitCommit string) *VersionAction

NewVersionAction creates a VersionAction.

func (*VersionAction) Execute

func (a *VersionAction) Execute(c *cli.Context) error

Execute prints version details.

type WaitAction

type WaitAction struct {
	// contains filtered or unexported fields
}

WaitAction polls one or more background processes until they finish or a timeout is reached, streaming new output to stdout on each poll cycle.

func NewWaitAction

func NewWaitAction(client *services.ClientService) *WaitAction

NewWaitAction creates a WaitAction.

func (*WaitAction) Execute

func (a *WaitAction) Execute(c *cli.Context) error

Execute polls processes identified by IDs or aliases, streaming new output and exiting with the process exit code on failure or 124 on timeout.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL