Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make -T - read a test from stdin. #308

Merged
merged 2 commits into from
Jul 1, 2022
Merged

Conversation

hildjj
Copy link
Contributor

@hildjj hildjj commented Jul 1, 2022

Take the output from a command (e.g. echo) and pipe it into peggy-cli's stdin. Specify -T -, and your test is executed. This is particularly handy when you just need a newline, or if you want to parse the output of curl.

@hildjj
Copy link
Contributor Author

hildjj commented Jul 1, 2022

This is small enough I'm just going to merge it. I'm finding it handy.

@hildjj hildjj merged commit 0f6e880 into peggyjs:main Jul 1, 2022
@hildjj hildjj deleted the dash-stdin-test branch July 1, 2022 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant