CLI Helper - library to help implementing commandline interfaces

Table of Contents

1. General

1.1. Source code

2. Library contents

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>

Author: Svjatoslav Agejenko

Created: 2023-10-12 Thu 22:18

Validate