psyinfra / onyo

text-based inventory system on top of git
ISC License
3 stars 5 forks source link

Machine-readable `get` quotes values #602

Closed bpoldrack closed 4 months ago

bpoldrack commented 4 months ago

This is changing the output of onyo_get when used in machine-readable mode to quote the values it prints. Hence, whitespaces in values aren't an issue (especially when piping onyo get into something else.

Demo generation script is adjusted accordingly, not requiring the -d "\n" option for xargs anymore, when reading onyo get's output to construct the onyo set call.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.74%. Comparing base (1a013f0) to head (5bea0d7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #602 +/- ## ======================================= Coverage 95.73% 95.74% ======================================= Files 71 71 Lines 5583 5590 +7 Branches 1081 1086 +5 ======================================= + Hits 5345 5352 +7 Misses 139 139 Partials 99 99 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.