CLI Helper - library to help implementing commandline interfaces
Table of Contents
1. General
- This program is free software: released under Creative Commons Zero (CC0) license
- Program author:
- Svjatoslav Agejenko
- Homepage: https://svjatoslav.eu
- Email: mailto://svjatoslav@svjatoslav.eu
- Other software projects hosted at svjatoslav.eu
1.1. Source code
- Download latest snapshot in TAR GZ format
- Browse Git repository online
Clone Git repository using command:
git clone https://www2.svjatoslav.eu/git/cli-helper.git
- See JavaDoc
2. Library contents
- See also: CLI Helper JavaDoc.
This library is a collection of command-line interface (CLI) helper functions that simplifies the process of building and maintaining CLI applications. The library provides several different functionalities, such as:
2.1. Ask for user input
- askBoolean()
- Asks the user to enter a boolean value (yes/no).
- askLong()
- Asks the user to enter an integer.
- askString()
- Asks the user to enter a string.
3. Getting the library
Instructions to embed svjatoslav-commons library in your project:
Maven pom.xml file snippet:
<dependencies> ... <dependency> <groupId>eu.svjatoslav</groupId> <artifactId>cli-helper</artifactId> <version>1.0</version> </dependency> ... </dependencies> <repositories> ... <repository> <id>svjatoslav.eu</id> <name>Svjatoslav repository</name> <url>http://www3.svjatoslav.eu/maven/</url> </repository> ... </repositories>