{"id":15069077,"url":"https://github.com/dmkyr20/tables4j","last_synced_at":"2025-04-10T17:44:45.001Z","repository":{"id":53889784,"uuid":"244165355","full_name":"dmkyr20/tables4j","owner":"dmkyr20","description":"Java-Cli-Table-Builder makes it easy to create flexible command-line tables. You haven't need to write your classes and methods to decorate console output anymore. Just use this flexible tool for positioning.","archived":false,"fork":false,"pushed_at":"2023-05-18T17:29:41.000Z","size":683,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T15:18:43.515Z","etag":null,"topics":["builder","cli","command-line","command-line-tool","console","console-app","console-application","console-log","console-tool","easy-to-use","java","java-11","java-8","java-library","library","maven","repository"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmkyr20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-01T14:37:28.000Z","updated_at":"2023-11-30T08:25:19.000Z","dependencies_parsed_at":"2024-09-29T14:10:39.835Z","dependency_job_id":"8a306279-75b6-4aad-a9f0-b40737301c83","html_url":"https://github.com/dmkyr20/tables4j","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmkyr20%2Ftables4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmkyr20%2Ftables4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmkyr20%2Ftables4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmkyr20%2Ftables4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmkyr20","download_url":"https://codeload.github.com/dmkyr20/tables4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262301,"owners_count":21074283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["builder","cli","command-line","command-line-tool","console","console-app","console-application","console-log","console-tool","easy-to-use","java","java-11","java-8","java-library","library","maven","repository"],"created_at":"2024-09-25T01:40:20.315Z","updated_at":"2025-04-10T17:44:44.979Z","avatar_url":"https://github.com/dmkyr20.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java-Cli-Table-Builder\nThank you for choosing Java-Cli-Table-Builder - an **easy** to use **command-line interface** tool.\n\n[![GitHub license](https://img.shields.io/github/license/dmkyr20/Java-Cli-Table-Builder)](https://github.com/dmkyr20/Java-Cli-Table-Builder/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/v/release/dmkyr20/Java-Cli-Table-Builder)]()\n\n## Overview\nJava-Cli-Table-Builder makes it easy to create flexible command-line tables. \nYou haven't need to write your classes and methods to decorate console output anymore.\nJust use this flexible tool for positioning.\n\n### Examples\n#### Example 1\n**Creating simple CLI game interface.**\u003cbr\u003e\nYou haven't need make formatting output by yourself anymore. Use already created methods for creating independent \nblocks on screen.\n##### Code\n```\npublic void simpleOutput() throws CellContentException {\n    TableBuilder tableBuilder = new TableBuilder();\n    tableBuilder.setDefaultCellBorderStyle(CellBorderTemplate.SOLID.getBorderStyle());\n\n    tableBuilder.addCell(HEADER, new CellPosition(0, 0, 100, 12));\n    tableBuilder.addCell(\"1 - Start\", new CellPosition(0, 12, 25, 15));\n    tableBuilder.addCell(\"2 - Load\", new CellPosition(25, 12, 50, 15));\n    tableBuilder.addCell(\"5 - Settings\", new CellPosition(50, 12, 75, 15));\n    tableBuilder.addCell(\"6 - Exit\", new CellPosition(75, 12, 100, 15));\n\n    tableBuilder.print();\n}\n```\n##### Output\n```\n┌──────────────────────────────────────────────────────────────────────────────────────────────────┐\n│                                                                                                  │\n│                                                                                                  │\n│                                                                                                  │\n│                             █▀▀ █░░ ░▀░         █▀▀▀ █▀▀█ █▀▄▀█ █▀▀                              │\n│                             █░░ █░░ ▀█▀         █░▀█ █▄▄█ █░▀░█ █▀▀                              │\n│                             ▀▀▀ ▀▀▀ ▀▀▀         ▀▀▀▀ ▀░░▀ ▀░░░▀ ▀▀▀                              │\n│                                                                                                  │\n│                                                                                                  │\n│                                                                                                  │\n│                                                                                                  │\n└──────────────────────────────────────────────────────────────────────────────────────────────────┘\n┌───────────────────────┐┌───────────────────────┐┌───────────────────────┐┌───────────────────────┐\n│       1 - Start       ││       2 - Load        ││     5 - Settings      ││       6 - Exit        │\n└───────────────────────┘└───────────────────────┘└───────────────────────┘└───────────────────────┘\n```\n#### Example 2\n**Easy and fast changes in any completed output.**\u003cbr\u003e\nYou can add a block of content in any place on screen. You shouldn't care about previously created content anymore.\n##### Code\n```\npublic void simpleOutputWithNote() throws CellContentException {\n    TableBuilder tableBuilder = new TableBuilder();\n    tableBuilder.setDefaultCellBorderStyle(CellBorderTemplate.SOLID.getBorderStyle());\n\n    tableBuilder.addCell(HEADER, new CellPosition(0, 0, 100, 12));\n    tableBuilder.addCell(\"1 - Start\", new CellPosition(0, 12, 25, 15));\n    tableBuilder.addCell(\"2 - Load\", new CellPosition(25, 12, 50, 15));\n    tableBuilder.addCell(\"5 - Settings\", new CellPosition(50, 12, 75, 15));\n    tableBuilder.addCell(\"6 - Exit\", new CellPosition(75, 12, 100, 15));\n\n    Cell note = new Cell(new CellPosition(1, 8, 90, 11), NOTE);\n    note.setCellBorderStyle(CellBorderTemplate.NO_BORDERS.getBorderStyle());\n    note.setHorizontalAlignment(CellHorizontalAlignment.LEFT);\n    tableBuilder.addCell(note);\n\n    tableBuilder.print();\n}\n```\n##### Output\n```   \n┌──────────────────────────────────────────────────────────────────────────────────────────────────┐\n│                                                                                                  │\n│                                                                                                  │\n│                                                                                                  │\n│                             █▀▀ █░░ ░▀░         █▀▀▀ █▀▀█ █▀▄▀█ █▀▀                              │\n│                             █░░ █░░ ▀█▀         █░▀█ █▄▄█ █░▀░█ █▀▀                              │\n│                             ▀▀▀ ▀▀▀ ▀▀▀         ▀▀▀▀ ▀░░▀ ▀░░░▀ ▀▀▀                              │\n│                                                                                                  │\n│                                                                                                  │\n│ Note: Pres number key to choose.                                                                 │\n│                                                                                                  │\n└──────────────────────────────────────────────────────────────────────────────────────────────────┘\n┌───────────────────────┐┌───────────────────────┐┌───────────────────────┐┌───────────────────────┐\n│       1 - Start       ││       2 - Load        ││     5 - Settings      ││       6 - Exit        │\n└───────────────────────┘└───────────────────────┘└───────────────────────┘└───────────────────────┘\n```\n\n### Requirements\n* Java 8 JDK or later. \n\n## How to start?\nYou can use the library as ```.jar``` file. Or run it using the CLI as executable ```.jar``` file.\u003cbr\u003e\nCopy the project. Then go to a folder with project and run ```gradle``` ```gradle clean build``` command.\nReady to use ```.jar``` file located in ```target``` folder.\n\nOr include it using `maven` or `gradle`:\n\n**Maven**\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.dmkyr20.Java-Cli-Table-Builder\u003c/groupId\u003e\n  \u003cartifactId\u003ejava-cli-table-builder\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e \n```\n**Gradle**\n```\nimplement 'org.dmkyr20.Java-Cli-Table-Builder.java-cli-table-builder:1.0.2'\n```\n\u003e See [Package](https://github.com/dmkyr20/Java-Cli-Table-Builder/packages/328302). \n\n\n## Documentation\nYou could find all documentation for project in JavaDoc.\u003cbr\u003e\nOr in [Documentation](https://github.com/dmkyr20/Java-Cli-Table-Builder/wiki). (Not Allowed yet)\n\n## License\nDistributed under the MIT License. See LICENSE for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmkyr20%2Ftables4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmkyr20%2Ftables4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmkyr20%2Ftables4j/lists"}