Draft
Conversation
Contributor
surprisetalk
commented
May 9, 2025
- added CLI tests
- added CLI subcommands
- changed existing subcommands to prefer STDIN over filenames for piping flexibility
- Refactor author entries in `pyproject.toml` to use a structured format. - Add repository URL under `[project.urls]` in `pyproject.toml`. - Include `pytest` as a development dependency in `pyproject.toml`. - Add pytest configuration options for test discovery and output format. - Update `.gitignore` to include `.vscode/` and ensure `.scrap-history` is properly listed.
- Updated `eval_command`, `type_command`, `flat_command`, `format_command`, and `pipe_command` to read from `args.input` instead of `args.program_file`. - Introduced context managers `captured_output` and `captured_binary_output` for better output handling in tests. - Added comprehensive tests for CLI commands, including error handling for invalid syntax and file operations. - Improved argument parsing in the main function to support new command structures.
This reverts commit 93bdd81.
…ug option - Modified command examples in `README.md` to use input redirection for better clarity. - Added `--debug` flag to `pipe`, `flat`, and `format` commands in `scrapscript.py` for improved debugging capabilities.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.