1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 00:57:15 +03:00

Merge pull request #448 from wader/bplist-torepr-tovalue

bplist: Make torepr convert to values
This commit is contained in:
Mattias Wadman 2022-10-04 18:19:28 +02:00 committed by GitHub
commit 5525e9eb8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"