-
Notifications
You must be signed in to change notification settings - Fork 76
Adding ability to have --stdin overwrite --text #64
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks like tests failed, I'm not familiar with the framework/setup used for testing here, so will defer to @fieu |
I'm new to bats so I may have built the test wrong. You can test manually from the command line: echo "this text will be used" | ./discord.sh --username "username test" --text="this text is ignored" --stdin |
This is the bats test file that worked for me, without all the other tests in it.
|
Nevermind. I see I forgot a closing } in the 01 tests file. :-( |
Yup, only just now noticed it myself, lol. That's what I get for reviewing code at 8 AM. |
No obvious errors to me, test still fails. Deferring to fieu |
Weird. When I pull that single test out separately, it works. I didn't want to run them all on my testing, but I'll run through them to see if I can figure it out. |
|
discord.sh cant be found for the pipe
|
Co-authored-by: Tobias <[email protected]>
Thanks for that catch. I had a symlink in my path for discord.sh that was finding the file in my local repo. Good catch! |
mh ci still failing maybe the secret for the weebhook is broken? |
I'm not sure what to do here so I'll leave it hanging in the ether until someone smarter than me makes decisions. :-) |
@fieu Any luck with you having a chance to check out why the automated tests are failing? Works from command line and the PR is pretty simple. Would love to see this go through. |
@fieu Sheldon, it's been two months for this relatively simple PR. Any chance you can take a look and push it through? I'm confident that the tests are failing because of the build environment, not the code. |
PR adds --stdin option to allow text to be piped in, overriding the --text option. This is per #62