config/~/Binary/generate_table.cr
2022-09-19 23:38:04 +03:00

30 lines
1.3 KiB
Crystal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require "tallboy"
def link_generate(link)
return "[Follow link](#{link})"
end
table = Tallboy.table do
header ["Binary name", "Software Name", "Home Link", "Language"]
row ["ec", "editorconfig-checker",
link_generate("https://github.com/editorconfig-checker/editorconfig-checker"), "Go"]
row ["git-ahead-check", "A tool for checking changes that have not been sent in Git repos",
link_generate("https://git.a2s.su/iiiypuk/git-ahead-check"), "Crystal"]
row ["hugo", "The worlds fastest framework for building websites",
link_generate("https://gohugo.io/"), "Go"]
row ["magick", "ImageMagick",
link_generate("https://imagemagick.org/script/index.php"), "C"]
row ["minify-html", "Extremely fast and smart HTML + JS + CSS minifier",
link_generate("https://github.com/wilsonzlin/minify-html/"), "Rust"]
row ["pfetch", "penguin A pretty system information tool written in POSIX sh",
link_generate("https://github.com/dylanaraps/pfetch"), "Shell"]
row ["pmng", "The very simple password manager for humans",
link_generate("https://git.a2s.su/iiiypuk/pmng"), "Crystal"]
end
puts "**My binary files in `$HOME/.bin/`**"
puts
puts table.render(:markdown)
puts
puts "For generate, use `crystal run generate_table.cr > README.md`"