Released command_kit 0.4.0. Adds modules for invoking $EDITOR, also printing fields, lists, and tables in a variety of formats!
#ruby #rubygem #cli #command_kit
https://github.com/postmodern/command_kit.rb/blob/main/ChangeLog.md#040--2022-11-11
https://github.com/postmodern/command_kit.rb#readme
#ruby #rubygem #cli #command_kit
Is anyone using command_kit on ruby 2.7? I'm thinking of releasing command_kit 0.4.0 which requires ruby >= 3.0.0 soon (maybe tonight?).
#command_kit #ruby
Should I override `open(path)` in `CommandKit::Stdio` to rescue `Errno::ENOENT` exceptions when the file does not exist and print the typical "#{program}: #{path}: No such file or directory" error message and exit 1?
https://github.com/postmodern/command_kit.rb/blob/main/lib/command_kit/stdio.rb
Seems like a common pattern and it's always better to print an error message then accidentally show the user an exception backtrace. Plus, I really do not like how Kernel.open allows for opening commands which can lead to command injection.
#command_kit
RT @postmodern_mod3@twitter.com
Now to start work on 0.2.0 and porting #command_kit to #CrystalLang.
๐ฆ๐: https://twitter.com/postmodern_mod3/status/1416271648559226880