resume

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(id string, opts Options) error

Run resolves the original cwd for the given session id, chdirs into it, and execs the source's resume command to fully replace the current process.

func RunSpec added in v0.7.0

func RunSpec(id string, opts Options) error

RunSpec prints the resume target without checking PATH, chdiring, or execing.

Types

type Options added in v0.6.1

type Options struct {
	Locator string
	Out     io.Writer
}

type Spec added in v0.7.0

type Spec struct {
	Source     string   `json:"source"`
	ID         string   `json:"id"`
	Locator    string   `json:"locator"`
	CWD        string   `json:"cwd"`
	CWDExists  bool     `json:"cwd_exists"`
	CWDUnknown bool     `json:"cwd_unknown"`
	Bin        string   `json:"bin"`
	Args       []string `json:"args"`
}

Jump to

Keyboard shortcuts

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