yay/pkg/settings/parser
Joey H 8948278568
fix(parser): ensure data is piped when using '-' argument (#1881)
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).
2023-01-03 19:43:15 +00:00
..
parser_test.go fix(parser): ensure data is piped when using '-' argument (#1881) 2023-01-03 19:43:15 +00:00
parser.go fix(parser): ensure data is piped when using '-' argument (#1881) 2023-01-03 19:43:15 +00:00
target_mode.go refactor(parser): unify atleast modes 2021-08-09 13:32:55 +02:00