pecoでrubicureをより便利に使う
rubicureとは?
Ruby界の鬼才、キュアエンジニアこと @sue445 さん作のruby gem。
プリキュアのタイトルや名前を出力してくれる非常に実用的なCLIツールです。
機能抜粋
こんな素敵機能がついています。
require 'rubicure'
puts Precure.now
# => {:series_name=>"go_princess", :title=>"Go!プリンセスプリキュア", :started_date=>Sun, 01 Feb 2015, :girls=>["cure_flora", "cure_mermaid", "cure_twinkle", "cure_scarlett"]}
print Precure.smile.girls.map(&:human_name), "\n"
# => ["星空みゆき", "日野あかね", "黄瀬やよい", "緑川なお", "青木れいか"]
azatoi = %i(rosetta pine peace)
azatoi.each { |e|print Cure.send(e), "\n" }
# => 四葉ありす
# => 山吹祈里
# => 黄瀬やよい
気になる方はGitHubで詳細をご確認ください。
pecoでプリキュアを検索
$ ruby -rrubicure -e "puts Precure.smile.girls" | peco
外部資料
Author And Source
この問題について(pecoでrubicureをより便利に使う), 我々は、より多くの情報をここで見つけました https://qiita.com/tbpgr/items/a2b34bd006125ee530fe著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .