Skip to main content

Module executor

Module executor 

Source
Expand description

Executor seam: how a built URL gets handed to macOS so Things can process it. Production uses OpenCommandExecutor (spawns /usr/bin/open -g <url>). Tests substitute RecordingExecutor, which captures URLs without spawning anything.

Structs§

OpenCommandExecutor
Production executor: shells out to /usr/bin/open -g <url>. The -g flag opens the URL in the background so Things doesn’t yank focus from whatever the user is doing.
RecordingExecutor
Test executor: records every URL it’s asked to open without spawning anything. Use urls() to inspect what was captured.

Traits§

Executor