Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EEDFD2009D9 for ; Wed, 18 May 2016 00:05:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ED6C7160A20; Tue, 17 May 2016 22:05:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39EB51609F5 for ; Wed, 18 May 2016 00:05:14 +0200 (CEST) Received: (qmail 1087 invoked by uid 500); 17 May 2016 22:05:13 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 1056 invoked by uid 99); 17 May 2016 22:05:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 22:05:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E7A912C1F68 for ; Tue, 17 May 2016 22:05:12 +0000 (UTC) Date: Tue, 17 May 2016 22:05:12 +0000 (UTC) From: "Appy (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-15849) Shell Cleanup: Simplify handling of commands' runtime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 22:05:15 -0000 Appy created HBASE-15849: ---------------------------- Summary: Shell Cleanup: Simplify handling of commands' runtime Key: HBASE-15849 URL: https://issues.apache.org/jira/browse/HBASE-15849 Project: HBase Issue Type: Improvement Reporter: Appy Assignee: Appy Priority: Minor Functions format_simple_command and format_and_return_simple_command are used to print runtimes right now. They are called from within every single command and use Ruby's 'yield' magic. Instead, we can simplify it using 'command_safe' function. Since command_safe wraps all commands, we can simply time before and after we call individual command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)