{"id":18606683,"url":"https://github.com/brendanashworth/cli-table","last_synced_at":"2025-11-02T14:30:32.023Z","repository":{"id":20694895,"uuid":"23978416","full_name":"brendanashworth/cli-table","owner":"brendanashworth","description":"Draw tables in a command line interface. Just like MySQL.","archived":false,"fork":false,"pushed_at":"2014-09-12T23:55:31.000Z","size":110,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T00:23:49.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brendanashworth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-12T22:04:48.000Z","updated_at":"2021-02-10T15:12:57.000Z","dependencies_parsed_at":"2022-08-19T19:31:25.927Z","dependency_job_id":null,"html_url":"https://github.com/brendanashworth/cli-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Fcli-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Fcli-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Fcli-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Fcli-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brendanashworth","download_url":"https://codeload.github.com/brendanashworth/cli-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394900,"owners_count":19631179,"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":[],"created_at":"2024-11-07T02:26:41.433Z","updated_at":"2025-11-02T14:30:31.982Z","avatar_url":"https://github.com/brendanashworth.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-table\n\n\u003e cli-table helps with drawing tables in command line interfaces.\n\n# Usage\n```java\nTextTable table = new TextTable();\ntable.addRow(\"Name\", \"Age\");\ntable.addBar();\ntable.addRow(\"Gracie Weber\", 24);\ntable.addRow(\"Lexi O'Conner\", 22);\n\nSystem.out.println(table.toString());\n```\n\n```\n+--------------+----+\n|Name          |Age |\n+--------------+----+\n|Gracie Weber  |24  |\n|Lexi O'Conner |22  |\n+--------------+----+\n```\n\n## Order by statement\n```java\nTextTable table = new TextTable();\n\ntable.addRow(\"Name\", \"Age\");\ntable.addBar();\ntable.addRow(\"Gracie Weber\", 24);\ntable.addRow(\"Lexi O'Conner\", 22);\ntable.orderBy(1, true); // order by first column, ascending\n\nSystem.out.println(table.toString());\n```\n\n~~~~\n+--------------+----+\n|Name          |Age |\n+--------------+----+\n|Lexi O'Conner |22  |\n|Gracie Weber  |24  |\n+--------------+----+\n~~~~\n\n## Where statement\n```java\nTextTable table = new TextTable();\n\ntable.addRow(\"Name\", \"Age\");\ntable.addBar();\ntable.addRow(\"Gracie Weber\", 24);\ntable.addRow(\"Lexi O'Conner\", 22);\ntable.where(1, new WhereComparator() {\n\t@Override\n\tpublic boolean onCompare(Object colData) {\n\t\treturn (Integer) colData \u003e 23;\n\t}\n});\n\nSystem.out.println(table.toString());\n```\n\n```\n+-------------+----+\n|Name         |Age |\n+-------------+----+\n|Gracie Weber |24  |\n+-------------+----+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanashworth%2Fcli-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrendanashworth%2Fcli-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanashworth%2Fcli-table/lists"}