laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/37849?usp=email )
Change subject: contrib/saip-tool: Add 'tree' command to display filesystem
treee of profile
......................................................................
contrib/saip-tool: Add 'tree' command to display filesystem treee of profile
Change-Id: I5cda7ef814648543c63938ac6a4fb9dba79379ff
---
M contrib/saip-tool.py
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/49/37849/1
diff --git a/contrib/saip-tool.py b/contrib/saip-tool.py
index 22b913e..dd2a944 100755
--- a/contrib/saip-tool.py
+++ b/contrib/saip-tool.py
@@ -62,6 +62,8 @@
parser_eapp.add_argument('--output-dir', default='.', help='Output directory
(where to store files)')
parser_eapp.add_argument('--format', default='cap', choices=['ijc', 'cap'],
help='Data format of output files')
+parser_info = subparsers.add_parser('tree', help='Display the filesystem tree')
+
def do_split(pes: ProfileElementSequence, opts):
i = 0
for pe in pes.pe_list:
@@ -221,6 +223,8 @@
with io.BytesIO(load_block_obj) as f, zipfile.ZipFile(fname, 'w')
as z:
javacard.ijc_to_cap(f, z, package_aid)
+def do_tree(pes:ProfileElementSequence, opts):
+ pes.mf.print_tree()
if __name__ == '__main__':
opts = parser.parse_args()
@@ -244,3 +248,5 @@
do_info(pes, opts)
elif opts.command == 'extract-apps':
do_extract_apps(pes, opts)
+ elif opts.command == 'tree':
+ do_tree(pes, opts)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37849?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I5cda7ef814648543c63938ac6a4fb9dba79379ff
Gerrit-Change-Number: 37849
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>