[svn-commits] kmoore: trunk r372447 - in /trunk: ./ apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 6 09:31:46 CDT 2012


Author: kmoore
Date: Thu Sep  6 09:31:44 2012
New Revision: 372447

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372447
Log:
Ensure "rules" is tab-completable for "queue show"

Previously, tabbing at the end of "queue show" produced a list of
available queues about which information could be shown, but did not
include an alternative command, "rules", to access information about
queue rules. The "rules" item should now be shown in the list of
tab-completable items.

(closes issue AST-958)
Reported-by: John Bigelow
........

Merged revisions 372444 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372445 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 372446 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=372447&r1=372446&r2=372447
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Sep  6 09:31:44 2012
@@ -8080,6 +8080,12 @@
 	}
 	ao2_iterator_destroy(&queue_iter);
 
+	/* Pretend "rules" is always at the end of the queues list since it is
+	 * an alternate command that should be tab-completable */
+	if (!ret && which == state && !wordlen) {
+		ret = ast_strdup("rules");
+	}
+
 	return ret;
 }
 




More information about the svn-commits mailing list