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:
parent
906a39e7a4
commit
16b01211b1
@ -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)
|
||||
|
2
format/bplist/testdata/bplist.fqtest
vendored
2
format/bplist/testdata/bplist.fqtest
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user