mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-25 00:37:31 +02:00
Renamed jar-manifest.py to jar_manifest.py, added multi manifest outputs to tests...
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
"""jc - JSON CLI output utility `jar-manifest` command output parser
|
"""jc - JSON CLI output utility `jar_manifest` command output parser
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ cat MANIFEST.MF | jc --jar-manifest
|
$ cat MANIFEST.MF | jc --jar_manifest
|
||||||
|
|
||||||
Usage (module):
|
Usage (module):
|
||||||
|
|
||||||
import jc.parsers.jar-manifest
|
import jc.parsers.jar_manifest
|
||||||
result = jc.parsers.jar-manifest.parse(jar-manifest_command_output)
|
result = jc.parsers.jar_manifest.parse(jar_manifest_command_output)
|
||||||
|
|
||||||
Schema:
|
Schema:
|
||||||
|
|
||||||
@ -20,11 +20,11 @@ Schema:
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ cat MANIFEST.MF | jc --jar-manifest -p
|
$ cat MANIFEST.MF | jc --jar_manifest -p
|
||||||
$ unzip -c apache-log4j-2.16.0-bin/log4j-core-2.16.0.jar META-INF/MANIFEST.MF | jc --jar-manifest -p
|
$ unzip -c apache-log4j-2.16.0-bin/log4j-core-2.16.0.jar META-INF/MANIFEST.MF | jc --jar_manifest -p
|
||||||
$ unzip -c 'apache-log4j-2.16.0-bin/*.jar' META-INF/MANIFEST.MF | jc --jar-manifest -p
|
$ unzip -c 'apache-log4j-2.16.0-bin/*.jar' META-INF/MANIFEST.MF | jc --jar_manifest -p
|
||||||
|
|
||||||
$ cat MANIFEST.MF | jc --jar-manifest -p
|
$ cat MANIFEST.MF | jc --jar_manifest -p
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ Examples:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
$ unzip -c 'apache-log4j-2.16.0-bin/*.jar' META-INF/MANIFEST.MF | jc --jar-manifest -p
|
$ unzip -c 'apache-log4j-2.16.0-bin/*.jar' META-INF/MANIFEST.MF | jc --jar_manifest -p
|
||||||
|
|
||||||
[
|
[
|
||||||
...
|
...
|
1
tests/fixtures/rhel-8/MANIFEST.MF.MULTI.json
vendored
Normal file
1
tests/fixtures/rhel-8/MANIFEST.MF.MULTI.json
vendored
Normal file
File diff suppressed because one or more lines are too long
2210
tests/fixtures/rhel-8/MANIFEST.MF.MULTI.out
vendored
Normal file
2210
tests/fixtures/rhel-8/MANIFEST.MF.MULTI.out
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user