Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/th3shadowbroker/paramizer

Paramizer is a java library for unix-like command-line interpretation.
https://github.com/th3shadowbroker/paramizer

command-line java lib maven mit unix-like

Last synced: 2 days ago
JSON representation

Paramizer is a java library for unix-like command-line interpretation.

Awesome Lists containing this project

README

        

## Paramizer
![travis-ci-build-status](https://travis-ci.com/Th3Shadowbroker/Paramizer.svg?branch=master)

Paramizer is a java library for unix-like command-line interpretation.

## Example

#### The code
``` java
String testInput = "unassigned1 -a assigned-value1OfA unassigned2 -b assigned-value1OfB -c --d";

ParameterString param = ParameterString.from(testInput);

System.out.println
(
"Unassigned (" + param.getUnassigned().length + "): " + String.join(", ", param.getUnassigned()) + "\n" +
"Flags (" + param.getFlagNames().length + "): " + String.join(", ", param.getFlagNames()) + "\n" +
"ValueFlags (" + param.getValueFlagNames().length + "): " + String.join(", ", param.getValueFlagNames())+ "\n" +
"Scheme (" + param.getScheme().length + "): " + Arrays.toString( param.getScheme() ) + "\n\n"
);
```

#### The result
```

Unassigned (2): unassigned1, unassigned2
Flags (2): c, -d
ValueFlags (2): a, b
Scheme (8): [UNASSIGNED, VALUE_FLAG, VALUE, UNASSIGNED, VALUE_FLAG, VALUE, FLAG, FLAG]

Value-Flags:
a: assigned-value1OfA
b: assigned-value1OfB
```

## Maven
```xml
...

th3shadowbroker-releases
https://nexus.m4taiori.io/repository/th3shadowbroker-releases/

...

io.m4taiori.paramizer
paramizer-core
20181128

...
```

## Documentation
The docs of this project are available [here](https://docs.m4taiori.io/paramizer/).

## License
Paramizer is licensed under the MIT-License