Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Ghostwright API examples

Both example suites automate the same interactive CLI so the two public API styles can be compared directly:

The vi examples use an isolated temporary HOME and a fixture marker, avoiding user configuration, welcome-screen, and locale assumptions. Linux CI installs vim-tiny; macOS uses its system vi.

The simple CLI application under test is /bin/sh, which is present on every macOS and Linux host supported by Ghostwright. The shell is launched explicitly—Ghostwright never inserts an implicit shell. Its script uses only POSIX printf and read builtins, prompts for a name, and prints a greeting.

Run all examples with:

bun test packages/ghostwright/examples