Popularity
5.4
Stable
Activity
0.0
Stable
23
2
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
A CLI tool to install 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. -
tallboy
Declarative API for drawing unicode/ascii character tables in crystal lang -
meet
Start a meeting quickly from the comfort of your command line. ๐ฉโ๐ฉโ๐งโ๐ฆ๏ธ๐จ๏ธ -
progress_bar.cr
A ProgressBar implementation for the Crystal programming language -
terminimal
A tiny CLI toolkit for building terminal apps for humans.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
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