From 3fc2db7f78e8a6887a0d1bf944c0b6615358fe72 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 21 Nov 2016 20:23:55 -0800 Subject: better formatting for help. Signed-off-by: Robin H. Johnson --- gentoo-data.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.", -- cgit v1.2.3-65-gdbad