space

package
v0.0.123 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string, stdout, stderr io.Writer) error

Handle runs kool macos space (args after "space").

func ResetTestHooks

func ResetTestHooks()

ResetTestHooks clears all test overrides.

func RunForTest

func RunForTest(args []string, stdout, stderr io.Writer) int

RunForTest runs the space handler in-process for tests.

func SetBackendForTest

func SetBackendForTest(b lib.Backend)

SetBackendForTest installs a Backend used instead of live Mission Control.

func SetGOOSForTest

func SetGOOSForTest(goos string)

SetGOOSForTest overrides library platform check.

func SetRunnerForTest

func SetRunnerForTest(r Runner)

SetRunnerForTest installs a Runner for --run follow-ups.

func SetSettleMSForTest

func SetSettleMSForTest(ms int)

SetSettleMSForTest sets settle delay in ms (0 = no sleep).

Types

type RecordingRunner

type RecordingRunner struct {
	Calls [][]string
	Err   error
}

RecordingRunner records follow-up invocations (tests).

func (*RecordingRunner) Run

func (r *RecordingRunner) Run(name string, args []string) error

type Runner

type Runner interface {
	Run(name string, args []string) error
}

Runner executes a --run follow-up command.

Jump to

Keyboard shortcuts

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