Implement --compare

This commit is contained in:
Michal Sojka 2024-09-15 21:52:21 +02:00
parent 97e9459c65
commit 12b7379af5
2 changed files with 42 additions and 6 deletions

View file

@ -17,7 +17,7 @@ usage: ros2nix [-h]
[--extra-propagated-build-inputs DEP1,DEP2,...]
[--extra-check-inputs DEP1,DEP2,...]
[--extra-native-build-inputs DEP1,DEP2,...] [--flake]
[--nixfmt] [--copyright-holder COPYRIGHT_HOLDER]
[--nixfmt] [--compare] [--copyright-holder COPYRIGHT_HOLDER]
[--license LICENSE]
source [source ...]
@ -74,6 +74,10 @@ options:
of the flake repo (default: False)
--nixfmt Format the resulting expressions with nixfmt (default:
False)
--compare Don't write any file, but check whether writing the
file would change existing files. Exit with exit code
2 if a change is detected. Useful for CI. (default:
False)
--copyright-holder COPYRIGHT_HOLDER
--license LICENSE License of the generated Nix expression, e.g. 'BSD'
(default: None)