🐛 Pass through stdin to custom typing tool (#19)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Previously, stdin contents were consumed and then not passed through to the typing tool. With this commit, they are correctly passed to any custom tool's stdin. Fixes #19.
This commit is contained in:
parent
71d5dc455d
commit
302bc0ebf4
4 changed files with 13 additions and 2 deletions
|
|
@ -54,6 +54,11 @@ setup() {
|
|||
typing result"
|
||||
}
|
||||
|
||||
@test "Passes selection to custom typer tool through stdin" {
|
||||
BEMOJI_TYPE_CMD="cat -" run bemoji -t 3>&-
|
||||
assert_output "❤️"
|
||||
}
|
||||
|
||||
@test "Runs custom default command" {
|
||||
BEMOJI_DEFAULT_CMD="echo my custom command" run bemoji 3>&-
|
||||
assert_output "my custom command"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue