Язык для скриптов

· 1 мин. чтения
Оглавление

ruby

Mruby

github

LxDay mruby fork

github

a repackaged mruby binary (just ~2.2MB with my dependencies) that bundles useful libraries into a single file. I included the following to meet my needs:

  • CLI tools: Optparse for argument parsing, ANSI colors for better output. - Data handling: Built-in YAML/JSON support. - Networking: HTTP/HTTPS client/server capabilities. - Task management: A simplified version of Rake.

You can customize it (add or remove dependencies and repackage the binary) to fit your specific requirements.

I now use this as a replacement for tasks where Bash or Make would have been my first choice. The repository includes example scripts (e.g., using kubectl or vault) and a Golang project skeleton to show how it all works.