[PATCH nft 0/2] pretty print .json-nft files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The plain `nft -j list ruleset` output is hard to read in diffs.
Instead, commit pretty printed JSON to git and compare that.

Existing .json-nft continue to work, and don't need to be regenerated.
But when the dump content changes, the prettified version is committed
to git.

Thomas Haller (2):
  tests/shell: use generated ruleset for `nft --check`
  tests/shell: have .json-nft dumps prettified to wrap lines

 tests/shell/helpers/json-pretty.sh  | 27 +++++++---
 tests/shell/helpers/test-wrapper.sh | 81 ++++++++++++++++++++---------
 2 files changed, 75 insertions(+), 33 deletions(-)

-- 
2.42.0





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux