Repository navigation
v0.0.0-alpha.20
Pre-releaseHighlights
Assertions and CI reports in reel test
A tape can now check the screen as a test, not just wait on it. Assert fails the tape if a pattern doesn't show in time, AssertAbsent fails if it does, and either can check how the text is drawn:
Type "teashop --offline" Enter
Assert "Sencha"
AssertAbsent@2s /error|panic/
Assert "connection refused" Fg 1 Boldreel test --summary "$GITHUB_STEP_SUMMARY" writes a Markdown report, and --junit FILE a JUnit one. reel check lints tapes without running them, and suggests a name when one is misspelled. See Testing with tapes.
Resizing mid-recording
The new Resize COLUMNS ROWS tape command resizes the terminal as dragging the window would. Recordings keep their starting size: a smaller terminal is drawn centered on it, and a larger one with smaller text so nothing is cut off.
Named looks
--look framed (or REEL_LOOK, or Set Look) adds a window bar, padding, a shadow, and a backdrop derived from the theme. bare shows just the terminal. Anything you set yourself still wins. See Appearance.
The same terminal on every host (breaking)
Programs run with reel.Exec now get TERM=xterm-256color and COLORTERM=truecolor everywhere, and with a nil cmd.Env they no longer see the host's terminal variables (NO_COLOR, FORCE_COLOR, COLUMNS, TERM_PROGRAM, TMUX, and others). A recording made on a laptop now matches one made in CI. If a program needs one of those variables, set it in cmd.Env, starting from reel.Environ(cmd.Dir).
Steadier typing and waits
Typing is paced by deadline, so long Type commands keep their speed on a busy host, and keys wait for a shell's line editor to be ready instead of echoing ahead of the prompt. Waits and assertions end as soon as the program exits, rather than running out their timeout. reel session start stops idle sessions after --timeout (30m by default).
Installing reel
brew install lrstanley/tap/reel(macOS and Linux, through Homebrew).- Prebuilt binaries for Linux, macOS, and Windows, on amd64 and arm64, are attached to the release.
Changelog
⚠️ Breaking Changes
- 28861b8: reel: give programs the same terminal environment on every host (@lrstanley)
- programs run with reel.Exec get TERM=xterm-256color even where xterm-ghostty's terminfo is installed, and with a nil cmd.Env no longer see the host's NO_COLOR, FORCE_COLOR, CLICOLOR, CLICOLOR_FORCE, COLUMNS, LINES, TERM_PROGRAM, TMUX, or other terminal variables. Set them in cmd.Env to keep them.
✨ New Features
- f88865f: cli: Assert and AssertAbsent in reel test (@lrstanley)
- 572d0c0: cli: Markdown and JUnit reports from reel test (@lrstanley)
- 872cf36: reel: stop idle sessions, and print a session's screen in color (@lrstanley)
- 4149835: reel: add named looks with --look, REEL_LOOK, and Set Look (@lrstanley)
- 6b504ee: reel: add reel check, to lint tapes without running them (@lrstanley)
- 8abf6c2: reel: suggest names for typos in tapes, and quote the line of an error (@lrstanley)
- b3123f6: reel: add the Resize tape command (@lrstanley)
- e82a3d3: reel: report the color scheme from the background (@lrstanley)
- b42f894: reel: start typing once the shell's line editor is ready (@lrstanley)
- 29ea493: reel: check the style of matched text with Styled (@lrstanley)
- 7a12cf2: reel: end waits when a program in the same process ends (@lrstanley)
- f5481af: reel: draw resized terminals on the recording's canvas (@lrstanley)
- a0d51b2: reel: add Profile.Paths, naming each file Export writes (@lrstanley)
- 440cad8: reel: export Pacer, and pace a tape's input with it (@lrstanley)
🐞 Bug Fixes
- b4154c8: cli: name tapes as given in reel check and reel test (@lrstanley)
- 1cea235: cli: draw nu's prompt once (@lrstanley)
- 6483e83: cli: name each file reel run wrote (@lrstanley)
- 35ad88b: cli: end a tape's Assert when its program exits (@lrstanley)
- 23c3bd2: reel: drop the tape: prefix of errors reel check gives at a tape's path (@lrstanley)
- a4bc75c: reel: end waits when the program exits (@lrstanley)
- d8bd40e: reel: end synchronized-output holds after 1s, and at exit (@lrstanley)
- 49d9233: reel: pace input delays by deadline (@lrstanley)
- 6c9f43b: reel: pace a tape's typing by deadline (@lrstanley)
- a54bbab: reel: set PWD to a command's directory (@lrstanley)
- e1351be: sink: keep one canvas through frames of another size (@lrstanley)
- 86b26b9: steep: count a program that exits before painting as started (@lrstanley)
🧹 Misc
3 changes
- 4443b1d: cli: share Wait and Assert's Line and Screen modifiers (@lrstanley)
- e375c16: reel: benchmark exports and video and GIF sinks, with and without resizes (@lrstanley)
- f9678af: reel: tidy Styled, OnCursorLine, and canvas drawing (@lrstanley)
Full changelog: v0.0.0-alpha.19...v0.0.0-alpha.20
📦 Install
go get getsteep.dev/steep@v0.0.0-alpha.20
go install getsteep.dev/steep/cmd/reel@v0.0.0-alpha.20
go get getsteep.dev/steep/reel@v0.0.0-alpha.20
go get getsteep.dev/steep/reel/sink/native@v0.0.0-alpha.20Docs:
- getsteep.dev/steep
- getsteep.dev/steep/cmd/reel
- getsteep.dev/steep/reel
- getsteep.dev/steep/reel/sink/native
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🔗 Other useful links: