Popularity
4.6
Declining
Activity
0.0
Stable
21
1
4
Programming language: Crystal
License: MIT License
Tags:
Cli Utils
terminal_table.cr alternatives and similar shards
Based on the "CLI Utils" category.
Alternatively, view terminal_table.cr alternatives based on common mentions on social networks and blogs.
-
hetzner-k3s
The easiest and fastest way to create and manage Kubernetes clusters in Hetzner Cloud using the lightweight distribution k3s by Rancher. -
oq
A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data. -
meet
Start a meeting quickly from the comfort of your command line. ๐ฉโ๐ฉโ๐งโ๐ฆ๏ธ๐จ๏ธ
InfluxDB โ Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
Promo
www.influxdata.com

Do you think we are missing an alternative of terminal_table.cr or a related project?
README
TerminalTable
Terminal Table is a simple ASCII table generator written in Crystal. This code was inspired by Terminal Table Ruby implementation https://github.com/tj/terminal-table
Installation
Add this to your application's shard.yml
:
dependencies:
terminal_table:
github: benoist/terminal_table.cr
Usage
require "terminal_table"
# Table with headings
table = TerminalTable.new
table.headings = ["Char", "Num"]
table << ["a", 1]
table << ["b", 2]
table << ["c", 3]
puts table.render
+------+-----+
| Char | Num |
+------+-----+
| a | 1 |
| b | 2 |
| c | 3 |
+------+-----+
# Table with a separator for each row
table = TerminalTable.new
table.headings = ["Char", "Num"]
table.separate_rows = true
table << ["a", 1]
table << ["b\nc", 2]
table << ["d", 3]
puts table.render
+------+-----+
| Char | Num |
+------+-----+
| a | 1 |
+------+-----+
| b | 2 |
| c | |
+------+-----+
| d | 3 |
+------+-----+
TODO
- [] Cell alignment
- [] Colspans
Contributing
- Fork it ( https://github.com/benoist/terminal_table.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- benoist Benoist Claassen - creator, maintainer