add bash-it

This commit is contained in:
2022-05-05 22:20:02 +02:00
parent 6a62a35d0d
commit 43701f0590
490 changed files with 33047 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# shellcheck shell=bash
about-plugin 'Java and JAR helper functions'
function jar_manifest {
about "extracts the specified JAR file's MANIFEST file and prints it to stdout"
group 'java'
param '1: JAR file to extract the MANIFEST from'
example 'jar_manifest lib/foo.jar'
unzip -c "${1:?${FUNCNAME[0]}: JAR file must be specified}" META-INF/MANIFEST.MF
}