1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

formatting

This commit is contained in:
Kelly Brazil
2021-12-21 08:13:00 -08:00
parent 63182dba26
commit ed4a9dc1d4

View File

@ -21,27 +21,27 @@ Usage (module):
Schema: Schema:
{ {
"archive": string, "archive": string,
"size": integer, "size": integer,
"size_unit": string, "size_unit": string,
"number_entries": integer, "number_entries": integer,
"number_files": integer, "number_files": integer,
"bytes_uncompressed": integer, "bytes_uncompressed": integer,
"bytes_compressed": integer, "bytes_compressed": integer,
"percent_compressed": float, "percent_compressed": float,
"files": [ "files": [
{ {
"flags": string, "flags": string,
"zipversion": string, "zipversion": string,
"zipunder": string "zipunder": string
"filesize": integer, "filesize": integer,
"type": string, "type": string,
"method": string, "method": string,
"date": string, "date": string,
"time": string, "time": string,
"filename": string "filename": string
} }
] ]
} }
Examples: Examples:
@ -82,9 +82,7 @@ class info():
description = '`zipinfo` command parser' description = '`zipinfo` command parser'
author = 'Matt J' author = 'Matt J'
author_email = 'https://github.com/listuser' author_email = 'https://github.com/listuser'
compatible = ['linux', 'darwin']
# compatible options: linux
compatible = ['linux']
magic_commands = ['zipinfo'] magic_commands = ['zipinfo']
@ -140,10 +138,10 @@ def parse(data, raw=False, quiet=False):
datalines = data.splitlines() datalines = data.splitlines()
datalist = list(filter(None, datalines)) datalist = list(filter(None, datalines))
if jc.utils.has_data(data): if jc.utils.has_data(data):
archive_info = [] archive_info = []
# 1st line # 1st line
# Archive: log4j-core-2.16.0.jar # Archive: log4j-core-2.16.0.jar