LoginSignup
1
1

More than 5 years have passed since last update.

Ruboty | Ruboty の help を正規表現で検索する ruboty-help_query を作成しました #ruboty

Posted at

Ruboty | Ruboty の help を正規表現で検索する ruboty-help_query を作成しました

概要

Ruboty の help を正規表現で検索する ruboty-help_query を作成しました

用途

Ruboty 本体に付属している help は help 全体を表示する機能はありますが、
任意の help を検索した結果を返却する機能がありません。
そのため、 plugin の数が増えてくると help を見るのも一苦労になります。
そこで、当 Ruboty::HelpQuery によって正規表現による検索機能を提供します。

Installation

Add this line to your application's Gemfile:

gem 'ruboty-help_query'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruboty-help_query

Commands

Command Pattern Description
help /help *(?<query>.+)\z/ Show all help commands that match <query>.

Usage

help

  • Show all help commands that match <query>.
>ruboty help ping
>ruboty /ping\z/i       - Return PONG to PING
>
>ruboty help p
>ruboty /help( me)?\z/i - Show this help message
>ruboty /ping\z/i       - Return PONG to PING

ENV

Name Description
-- --

Dependency

Name Description
-- --

参照

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1