postmodern · @postmodern
565 followers · 452 posts · Server ruby.social

Released command_kit 0.4.0. Adds modules for invoking $EDITOR, also printing fields, lists, and tables in a variety of formats!

github.com/postmodern/command_
github.com/postmodern/command_

#ruby #rubygem #cli #command_kit

Last updated 2 years ago

postmodern · @postmodern
565 followers · 452 posts · Server ruby.social

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?).

github.com/postmodern/command_

#command_kit #ruby

Last updated 2 years ago

postmodern · @postmodern
565 followers · 452 posts · Server ruby.social

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?
github.com/postmodern/command_

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

Last updated 2 years ago

alexanderadam · @alexanderadam
301 followers · 3369 posts · Server ruby.social

RT @postmodern_mod3@twitter.com

Now to start work on 0.2.0 and porting to .

๐Ÿฆ๐Ÿ”—: twitter.com/postmodern_mod3/st

#command_kit #crystallang

Last updated 3 years ago