Swap grep context with grep options

This commit is contained in:
Nick Hammond
2024-06-06 09:26:12 -07:00
parent eb79d93139
commit c7bd377fa5
12 changed files with 43 additions and 43 deletions

View File

@@ -128,7 +128,7 @@ class CommandsAccessoryTest < ActiveSupport::TestCase
assert_equal \
"docker logs app-mysql --since 5m --tail 100 --timestamps 2>&1 | grep 'thing' -C 2",
new_command(:mysql).logs(since: "5m", lines: 100, grep: "thing", context: 2).join(" ")
new_command(:mysql).logs(since: "5m", lines: 100, grep: "thing", grep_options: "-C 2").join(" ")
end
test "follow logs" do