diff options
author | 2016-11-21 20:23:55 -0800 | |
---|---|---|
committer | 2016-11-21 20:23:55 -0800 | |
commit | 3fc2db7f78e8a6887a0d1bf944c0b6615358fe72 (patch) | |
tree | 43fa0f9c0ad81e52d6ef237eaafe7772ec4a5d96 | |
parent | !support: allow optional "GLSA " prefix. (diff) | |
download | rbot-gentoo-3fc2db7f78e8a6887a0d1bf944c0b6615358fe72.tar.gz rbot-gentoo-3fc2db7f78e8a6887a0d1bf944c0b6615358fe72.tar.bz2 rbot-gentoo-3fc2db7f78e8a6887a0d1bf944c0b6615358fe72.zip |
better formatting for help.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | gentoo-data.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb index f0aa5f0..9e7fe34 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -363,8 +363,9 @@ class GentooPlugin < Plugin m.reply "#{cp} #{output.join(' ')}" end + @@commands = %w(meta changelog devaway proj expn glsa earch rdep ddep pdep) @@help_gentoo = { - "gentoo" => "Available commands: #{Bold}meta#{Bold}, #{Bold}changelog#{Bold}, #{Bold}devaway#{Bold}, #{Bold}proj#{Bold}, #{Bold}expn#{Bold}, #{Bold}glsa#{Bold}, #{Bold}earch#{Bold}, #{Bold}rdep#{Bold}, #{Bold}ddep#{Bold}, #{Bold}pdep#{Bold}", + "gentoo" => "Available commands: " + @@commands.map { |s| "#{Bold}#{s}#{Bold}" }.join(", ") "meta" => [ "meta #{Bold}[cat/]package#{Bold} : Print metadata for the given package", "meta -v #{Bold}[cat/]package#{Bold} : Print metadata for the given package and the members of the maintaining projects.", |