console-util

A tool for beautiful print on CLI.

License

License

GroupId

GroupId

com.github.jameszbl
ArtifactId

ArtifactId

console-util
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

console-util
A tool for beautiful print on CLI.
Project URL

Project URL

https://github.com/JamesZBL/console-util
Source Code Management

Source Code Management

https://github.com/JamesZBL/console-util

Download console-util

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jameszbl/console-util/ -->
<dependency>
    <groupId>com.github.jameszbl</groupId>
    <artifactId>console-util</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jameszbl/console-util/
implementation 'com.github.jameszbl:console-util:1.0.2'
// https://jarcasting.com/artifacts/com.github.jameszbl/console-util/
implementation ("com.github.jameszbl:console-util:1.0.2")
'com.github.jameszbl:console-util:jar:1.0.2'
<dependency org="com.github.jameszbl" name="console-util" rev="1.0.2">
  <artifact name="console-util" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jameszbl', module='console-util', version='1.0.2')
)
libraryDependencies += "com.github.jameszbl" % "console-util" % "1.0.2"
[com.github.jameszbl/console-util "1.0.2"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Console Util For Better Printing

Build Status LICENSE Maven central GitHub release

How to use

Maven

<dependency>
    <groupId>com.github.jameszbl</groupId>
    <artifactId>console-util</artifactId>
    <version>1.0.2</version>
</dependency>

Gradle

compile group: 'com.github.jameszbl', name: 'console-util', version: '1.0.2'

Table

Table table = new Table.Builder().
            // 列名
            columns(new String[]{"班级", "学号", "姓名", "性别"}).
            // 单元格
            cells(new String[][]{
                    {"软件1班", "123", "李明", ""},
                    {"软件2", "13533", "王3名", ""},
                    {"软件3", "21212333", "刘文", ""},
                    {"软件3", "212", "刘翰", ""}}).
            // 列宽
            columnLength(10).
            build();
    System.out.println(table);

LICENSE

Apache License 2.0

Versions

Version
1.0.2