1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00

bplist: Make torepr convert to values

This commit is contained in:
Mattias Wadman 2022-10-04 18:12:49 +02:00
parent 906a39e7a4
commit 16b01211b1
2 changed files with 10 additions and 8 deletions

View File

@ -1,13 +1,13 @@
def _bplist_torepr:
def _f:
( if .type == "singleton" then .value
elif .type == "int" then .value
elif .type == "real" then .value
elif .type == "date" then .value
elif .type == "data" then .value
elif .type == "ascii_string" then .value
elif .type == "unicode_string" then .value
elif .type == "uid" then .value
( if .type == "singleton" then .value | tovalue
elif .type == "int" then .value | tovalue
elif .type == "real" then .value | tovalue
elif .type == "date" then .value | tovalue
elif .type == "data" then .value | tovalue
elif .type == "ascii_string" then .value | tovalue
elif .type == "unicode_string" then .value | tovalue
elif .type == "uid" then .value | tovalue
elif .type == "array" then
( .entries
| map(_f)

View File

@ -2420,3 +2420,5 @@ $ fq torepr Info.plist
"LSMinimumSystemVersion": "10.14",
"NSHumanReadableCopyright": "Copyright (c) 2011-2021 Apple Inc. All rights reserved."
}
$ fq torepr.CFBundleName Info.plist
"AppleProResCodecEmbedded"