mirror of
https://github.com/Jguer/yay
synced 2024-07-21 10:16:10 +00:00
8948278568
fix(parser): ensure data is piped when using '-' argument Fixes #1626. Check to see if data was actually piped to yay, otherwise it will hang forever. This error will give users better feedback of how to use the '-' argument (it is also the same exact error pacman throws for invalid piped data). Two tests were added. However, I didn't know how to add a test for the actual part that detects whether data was piped or not (which is essentially what this commit adds). |
||
---|---|---|
.. | ||
exe | ||
parser | ||
args.go | ||
config.go | ||
config_test.go | ||
dirs.go | ||
dirs_test.go | ||
errors.go | ||
migrations.go | ||
migrations_test.go | ||
pacman.go | ||
pacman_test.go | ||
runtime.go |