Skip to content

screenplay tool: accept a single .play file and add --warnaserror - #42

Merged
woksin merged 4 commits into
mainfrom
feature/tool-single-file-and-warnaserror
Jul 29, 2026
Merged

screenplay tool: accept a single .play file and add --warnaserror#42
woksin merged 4 commits into
mainfrom
feature/tool-single-file-and-warnaserror

Conversation

@woksin

@woksin woksin commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Added

woksin added 4 commits July 29, 2026 01:49
Compiling one known file went through directory discovery, so a caller with a
path in hand had nowhere to go. CompileFile compiles it directly and uses the
file name as the relative path, so diagnostics read the same way they do for a
discovered file.
Pointing the tool at a file printed "Directory '<path>' does not exist", so
verifying one generated document meant copying it into a scratch directory
first. A positional argument that is an existing .play file now compiles just
that file; anything else keeps the directory behavior.

Warnings never influenced the exit code, which hides a warning from a pipeline
that generates documents and expects them clean. --warnaserror opts into
failing the run on warnings, matching the convention of other compiler tools.
@woksin woksin added the patch Bug fixes, docs, refactoring label Jul 28, 2026
@woksin
woksin merged commit dd08d19 into main Jul 29, 2026
1 check passed
@woksin
woksin deleted the feature/tool-single-file-and-warnaserror branch July 29, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bug fixes, docs, refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant