PIBOOTCTL-DIFF(1)

✨ pibootctl-diff ✨

okay bestie, so this is pibootctl-diff β€” one page out of the whole pibootctl manual, and it's literally the little diff goblin of the family. πŸ’…


🌸 SYNOPSIS 🌸

pibootctl diff [-h] [--json | --yaml | --shell] [left] right

πŸ’– DESCRIPTION πŸ’–

She shows you the settings that differ between two stored boot configurations β€” or between one stored boot configuration and whatever the current config is rn. πŸ¦‹

That's it. That's the job. Side-by-side, glow-up comparison energy. ✨


πŸŽ€ OPTIONS πŸŽ€

  • left β€” the boot configuration you're comparing from 🫢. If you just... don't give her one, she uses the current configuration instead.
  • right β€” the boot configuration you're comparing against. The other half of the situationship. 😭
  • -h, --help β€” pops up a brief help page for the command. Tiny, cute, useful. πŸ’…
  • --json β€” output format: JSON. For the devs. For the machines. For the vibes. πŸ”₯
  • --yaml β€” output format: YAML. Same deal, different punctuation. ✨
  • --shell β€” output format: tab-delimited, i.e. suitable for the shell. Practical queen. πŸ‘‘

🌈 USAGE 🌈

so the diff command displays the differences between two boot configurations, right? Either:

  • two stored configurations β€” if you hand her two names on the command line, or
  • the current boot configuration vs a stored one β€” if you hand her just one name. 🧚

Like this, fr fr:

$ sudo pibootctl save default
$ sudo pibootctl set video.hdmi0.group=1 video.hdmi0.mode=4
$ pibootctl diff default
+-------------------+----------------+--------------------+
| Name              | <Current>      | default            |
|-------------------+----------------+--------------------|
| video.hdmi0.group | 1 (CEA)        | 0 (auto from EDID) |
| video.hdmi0.mode  | 4 (720p @60Hz) | 0 (auto from EDID) |
+-------------------+----------------+--------------------+
$ sudo pibootctl save 720p
$ pibootctl diff default 720p
+-------------------+--------------------+----------------+
| Name              | default            | 720p           |
|-------------------+--------------------+----------------|
| video.hdmi0.group | 0 (auto from EDID) | 1 (CEA)        |
| video.hdmi0.mode  | 0 (auto from EDID) | 4 (720p @60Hz) |
+-------------------+--------------------+----------------+

look at those little tables. iconic. πŸ₯Ή


πŸ’œ for the devs building on top πŸ’œ

For developers wishing to build on top of pibootctl, options are provided to produce the output in JSON (--json), YAML (--yaml), and shell-friendly (--shell): πŸ› οΈ

$ pibootctl diff --json default 720p
{"video.hdmi0.mode": {"right": 4, "left": 0}, "video.hdmi0.group":
{"right": 1, "left": 0}}
no cap, that's the exact output. don't come for me about the line break, that's just how it is. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Dave Jones


2019-2020 Dave Jones


and that's the whole page, bestie πŸ’– β€” this was version 0.5.2, dated Sep 14, 2020, from the pibootctl manual. go forth and diff responsibly. βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from