diff --git a/hbase-server/src/main/ruby/shell.rb b/hbase-server/src/main/ruby/shell.rb index 1ba9e02..93f1435 100644 --- a/hbase-server/src/main/ruby/shell.rb +++ b/hbase-server/src/main/ruby/shell.rb @@ -17,6 +17,9 @@ # limitations under the License. # +# Load commands base class +require 'shell/commands' + # Shell commands module module Shell @@commands = {} @@ -29,6 +32,10 @@ module Shell @@command_groups end + # Hack to add desc alias for describe + require "shell/commands/describe" + commands["desc"] = eval("Commands::Describe") + def self.load_command(name, group) return if commands[name] @@ -214,9 +221,6 @@ For more on the HBase Shell, see http://hbase.apache.org/docs/current/book.html end end -# Load commands base class -require 'shell/commands' - # Load all commands Shell.load_command_group( 'general',