space

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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