Add --raw-format to 'tool-requirements' subcommand

This commit is contained in:
2022-03-17 15:05:18 +01:00
parent e511fc3c0a
commit f9a38e616d
4 changed files with 55 additions and 9 deletions

View File

@@ -67,3 +67,9 @@ prettyRequirements Requirements {..} =
else ""
n = if not . T.null $ _notes then "\n Note: " <> _notes else ""
in "System requirements " <> d <> n
rawRequirements :: Requirements -> T.Text
rawRequirements Requirements {..} =
if not . null $ _distroPKGs
then T.intercalate " " _distroPKGs
else ""