mirror of
https://github.com/anas-elgarhy/JColorfulConsole.git
synced 2024-08-14 23:57:19 +00:00
Add instructions for use, and how to include in the project 🗒🗒
This commit is contained in:
parent
e48743e83c
commit
e1307c9ff7
1 changed files with 38 additions and 0 deletions
38
README.md
38
README.md
|
@ -8,6 +8,44 @@
|
||||||
- Support background color.
|
- Support background color.
|
||||||
- Support text style.
|
- Support text style.
|
||||||
|
|
||||||
|
### How to add this library into your project
|
||||||
|
#### Maven:
|
||||||
|
**Step 1**. Add the JitPack repository to your build file
|
||||||
|
```xml
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jitpack.io</id>
|
||||||
|
<url>https://jitpack.io</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
```
|
||||||
|
**Step 2**. Add the dependency
|
||||||
|
```xml
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.Anas-Elgarhy</groupId>
|
||||||
|
<artifactId>JColorfulConsole</artifactId>
|
||||||
|
<version>0.1.0</version>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Gradle:
|
||||||
|
**Step 1**. Add the JitPack repository to your build file<br>
|
||||||
|
*Add it in your root build.gradle at the end of repositories:*
|
||||||
|
```gradle
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
...
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
**Step 2**. Add the dependency
|
||||||
|
```gradle
|
||||||
|
dependencies {
|
||||||
|
implementation 'com.github.Anas-Elgarhy:JColorfulConsole:0.1.0'
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Usage:
|
### Usage:
|
||||||
```java
|
```java
|
||||||
ConsoleManager manager = new DefaultConsoleManager(); // Create a new console manager
|
ConsoleManager manager = new DefaultConsoleManager(); // Create a new console manager
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue