[
https://issues.apache.org/jira/browse/CASSANDRA-15046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17724246#comment-17724246
]
Brad Schoening commented on CASSANDRA-15046:
--------------------------------------------
[~smiklosovic] Yundi's patch used an environment variable to set the length of
the history shown. The default was 50 lines of history. I'm proposing
revising this to have an optional command arg for line length instead, similar
to how the PAGING command works with a line.
I.e.,
{{cqlsh> history – display last 50 lines of history}}
{{cqlsh> history 25 – set the length of output and display 25 lines}}
{{cqlsh> history – display last 25 lines of history}}
{{cqlsh> paging 25 – set the length of output }}
> Add a "history" command to cqlsh. Perhaps "show history"?
> ----------------------------------------------------------
>
> Key: CASSANDRA-15046
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15046
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL/Interpreter
> Reporter: Wes Peters
> Assignee: Brad Schoening
> Priority: Low
> Labels: lhf
> Fix For: 5.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I was trying to capture some create key space and create table commands from
> a running cqlsh, and found there was no equivalent to the '\s' history
> command in Postgres' psql shell. It's a great tool for figuring out what you
> were doing yesterday.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]