Skip to content

jbangdev/jbang-catalog

Repository files navigation

JBang Catalog

How to run

This is a catalog to use with jbang.

Each alias below shows how to run it with JBang. For this you need to have jbang installed and available in your PATH. See the JBang website for options on how to install JBang.

Aliases

hello

Script that says hello back for each argument

jbang hello@jbangdev

properties

Dump table of System properties

jbang properties@jbangdev

deps

Analyze JBang script dependencies

jbang deps@jbangdev

env

Dump table of Environment Variables

jbang env@jbangdev

gavsearch

gavsearch lets you use search.maven.org from command line. Example: gavsearch hibernate will search for artifacts with hibernate in its name. You can use any of the search modifiers search.maven.org supports, i.e.: gavsearch c:QuarkusTest will search for artifacts with class QuarkusTest

jbang gavsearch@jbangdev

git

Git command line tool implemented with jgit. Lets you do basic git features without installing git!

jbang git@jbangdev

bouncinglogo

jbang bouncinglogo@jbangdev

h2

jbang h2@jbangdev

catalog2readme

jbang catalog2readme@jbangdev

httpd

httpd runs a webserver serving out the content of a directory. Example: jbang httpd@jbangdev -d _site will serve out the _site folder on localhost:8000.

jbang httpd@jbangdev

getjava

Experimental utility to download Java distributions using api.foojay.io.

jbang getjava@jbangdev

ec

jbang ec@jbangdev

faker

jbang faker@jbangdev

dalle

jbang dalle@jbangdev

bootstrap

Bootstrap a jbang script to make it self-contained.

jbang bootstrap@jbangdev

jmc

jbang jmc@jbangdev

mf

mf.java - JAR Manifest Reader CLI

mf is a command-line tool for extracting and displaying JAR manifest information.

Usage

mf <jar-file> [--json] [--yaml] [--structured|-s]
  • <jar-file>: Path to the JAR file to analyze (required). Use '-' for stdin.
  • --json: Output manifest attributes as JSON.
  • --yaml: Output manifest attributes as YAML.
  • --structured, -s: Parse known attributes (e.g., Import-Package, Export-Package) into structured data (lists/maps).

Features

  • Reads the META-INF/MANIFEST.MF from the specified JAR file.
  • By default, prints manifest attributes as manifest.mf.
  • Supports machine-readable output with --json or --yaml.
  • Structured parsing of known attributes with --structured.
  • Returns a nonzero exit code if the manifest is missing or the JAR cannot be read.

Examples

mf mylib.jar
mf mylib.jar --json
mf `jbang info jar org.junit.jupiter:junit-jupiter:5.10.0` --yaml--structured
jbang mf@jbangdev

jbang-fmt

Format Java code (without messing up JBang directives).

jbang jbang-fmt@jbangdev

jbang-jupyter

jbang jbang-jupyter@jbangdev

trylink

jbang trylink@jbangdev

Templates

github

Simple cli to querying github

jbang init -t github@jbangdev

qmcp

Simple cli to querying github

jbang init -t qmcp@jbangdev

jitpack

Initializes a bare-bone jitpack.yml to enable publishing a jbang script as a maven artifact via jitpack.

Example: jbang init -t jitpack@jbangdev myapp.java and then commit this to github and visit jitpack.io to trigger its build.

jbang init -t jitpack@jbangdev

renovate

Initializes a renovate.json to enable automatic management of any .java file //DEPS section.

Example: jbang init -t renovate@jbangdev .github/renovate.json and then commit this to github and if you installed https://github.com/apps/renovate renovate will make issues and PR's for dependency updates.

jbang init -t renovate@jbangdev

junit

Basic template for JUnit tests

jbang init -t junit@jbangdev

About

Catalog of jbang scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 11

Languages