pepin:Ruby编写的用于CLI的交互式过滤工具

时间:2021-05-02 23:46:37
【文件属性】:
文件名称:pepin:Ruby编写的用于CLI的交互式过滤工具
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-02 23:46:37
Ruby 佩平 Pepin是一种类似于Percol和Peco的交互式过滤工具,用于用Ruby编写的CLI。 Pepin.search启动交互式窗口进行过滤,并返回过滤后的项目。 安装 将此行添加到您的应用程序的Gemfile中: gem 'pepin' 然后执行: $ bundle 或将其自己安装为: $ gem install pepin 用法 最简单的示例如下。 #!/usr/bin/env ruby require 'pepin' list = %w( Alpha Bravo Charlie Delta Echo ) item = Pepin . search ( list ) # Launches interactive window and returns selected item puts %(You selected " #{ item } " from #{ list
【文件预览】:
pepin-master
----.travis.yml(76B)
----bin()
--------console(330B)
--------setup(115B)
----pepin.gemspec(953B)
----Rakefile(116B)
----Gemfile(90B)
----.rspec(30B)
----spec()
--------interactive_search_spec.rb(560B)
--------dummy_view.rb(388B)
--------spec_helper.rb(349B)
----.gitignore(87B)
----lib()
--------pepin()
--------pepin.rb(392B)
----CODE_OF_CONDUCT.md(1KB)
----README.md(2KB)
----LICENSE.txt(1KB)
----exe()
--------pepin(195B)

网友评论