You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lyuben Todorov (JIRA)" <ji...@apache.org> on 2013/12/04 21:10:35 UTC

[jira] [Commented] (CASSANDRA-6421) Add bash completion to nodetool

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

Lyuben Todorov commented on CASSANDRA-6421:
-------------------------------------------

[~cscetbon] Maybe I'm missing something but I cant get the autocomplete to kick in. Is my expectation of the below incorrect?
{code}
./nodetool cfhisto
# I was expecting the above to be autocompleted to the below when I press [TAB]  
./nodetool cfhistograms
{code}

When i try running *./etc/bash_completion.d/nodetool* I get the below error on OSX and Linux Ubuntu (didn't test other distros)
{code}
./etc/bash_completion.d/nodetool: line 1: have: command not found
{code}

Are any steps necessary  to activate the autocomplete, or should it just work with nodetool? 

> 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: Cyril Scetbon
>            Priority: Trivial
>             Fix For: 2.0.4
>
>
> You can find the patch from my commit here :
> https://github.com/cscetbon/cassandra/commit/07a10b99778f14362ac05c70269c108870555bf3.patch
> 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#6144)