cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6421) Add bash completion to nodetool
Date Wed, 15 Jan 2014 18:02:26 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872333#comment-13872333
] 

Michael Shuler commented on CASSANDRA-6421:
-------------------------------------------

Here's a quick diff of your completion vs. `nodetool help` from trunk, if this helps:
{noformat}
mshuler@hana:~$ diff -u1 nt.comp.s nt.help.s 
--- nt.comp.s   2014-01-15 11:55:51.951813522 -0600
+++ nt.help.s   2014-01-15 11:55:42.031722398 -0600
@@ -5,2 +5,3 @@
 compact
+compactionhistory
 compactionstats
@@ -9,2 +10,3 @@
 describering
+disableautocompaction
 disablebackup
@@ -15,2 +17,3 @@
 drain
+enableautocompaction
 enablebackup
@@ -27,2 +30,3 @@
 gossipinfo
+help
 info
@@ -34,3 +38,2 @@
 pausehandoff
-predictconsistency
 proxyhistograms
@@ -40,2 +43,3 @@
 refresh
+reloadtriggers
 removenode
@@ -47,2 +51,3 @@
 setcachecapacity
+setcachekeystosave
 setcompactionthreshold
@@ -56,3 +61,5 @@
 stop
+stopdaemon
 tpstats
+truncatehints
 upgradesstables
mshuler@hana:~$
{noformat}

> Add bash completion to nodetool
> -------------------------------
>
>                 Key: CASSANDRA-6421
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6421
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Cyril Scetbon
>            Assignee: Michael Shuler
>            Priority: Trivial
>             Fix For: 1.2.14, 2.0.5
>
>
> You can find the bash-completion file at https://raw.github.com/cscetbon/cassandra/nodetool-completion/etc/bash_completion.d/nodetool
> it uses cqlsh to get keyspaces and namespaces and could use an environment variable (not
implemented) to get access which cqlsh if authentification is needed. But I think that's really
a good start :)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message