Documentation
¶
Index ¶
- Constants
- func ApplyTheme(ctx context.Context, runner Runner, backend Backend, name string, theme Theme) error
- func Attach(ctx context.Context, runner Runner, backend Backend, name string) error
- func DefaultShell() string
- func Exists(ctx context.Context, runner Runner, backend Backend, name string) (bool, error)
- func NormalizeNameForBackend(backend Backend, name string) (string, bool, error)
- func ResolveExecCommand(args []string) (string, []string)
- func RunExecWithPTY(ctx context.Context, dir string, command []string, env []string) error
- func Running(ctx context.Context, runner Runner, backend Backend, name string) (bool, error)
- func ScreenHasSession(output, name string) bool
- func Start(ctx context.Context, runner Runner, backend Backend, root, name string, ...) error
- func Stop(ctx context.Context, runner Runner, backend Backend, name string) error
- func ThemeNotice(theme Theme, backend Backend) (label string, hint string)
- type Backend
- type CommandResult
- type CommandSpec
- type ExecRunner
- type Runner
- type Theme
Constants ¶
View Source
const ThemeWorkset = "workset"
Variables ¶
This section is empty.
Functions ¶
func ApplyTheme ¶
func DefaultShell ¶
func DefaultShell() string
func NormalizeNameForBackend ¶
func ResolveExecCommand ¶
func RunExecWithPTY ¶
func ScreenHasSession ¶
Types ¶
type CommandResult ¶
type CommandSpec ¶
type ExecRunner ¶
type ExecRunner struct{}
func (ExecRunner) LookPath ¶
func (ExecRunner) LookPath(name string) error
func (ExecRunner) Run ¶
func (ExecRunner) Run(ctx context.Context, spec CommandSpec) (CommandResult, error)
type Runner ¶
type Runner interface {
LookPath(name string) error
Run(ctx context.Context, spec CommandSpec) (CommandResult, error)
}
Click to show internal directories.
Click to hide internal directories.