Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI - improve visual usability #892

Closed
rmoff opened this issue Mar 8, 2018 · 4 comments
Closed

CLI - improve visual usability #892

rmoff opened this issue Mar 8, 2018 · 4 comments

Comments

@rmoff
Copy link
Contributor

rmoff commented Mar 8, 2018

Many people like to use CLI, even if a GUI is available. We should make the KSQL CLI even nicer to use:

  • Render results with column headings (consider option to periodically repeat, c.f. pages of continuous streams of data)
  • Render results with each column of fixed size (either dynamically, or user-configurable). sql*plus does this to an extreme which I wouldn't suggest we try to imitate, but the basic syntax of format <col> width <x> could be useful
  • Support colour coding, for example, different colours for (a) the ksql> prompt , (b) command text (c) result stream (d) errors

Related: #797

@MichaelDrogalis
Copy link
Contributor

This is small but worthwhile in my opinion. For (1) and (2), today we have:

ksql> select * from all_publications;
1559328693686 | C.S. Lewis | C.S. Lewis | The Silver Chair
1559328694429 | George R. R. Martin | George R. R. Martin | A Song of Ice and Fire
1559328694555 | C.S. Lewis | C.S. Lewis | Perelandra
1559328694696 | George R. R. Martin | George R. R. Martin | Fire & Blood
1559328694768 | J. R. R. Tolkien | J. R. R. Tolkien | The Hobbit
1559328694840 | J. R. R. Tolkien | J. R. R. Tolkien | The Lord of the Rings
1559328694924 | George R. R. Martin | George R. R. Martin | A Dream of Spring
1559328695002 | J. R. R. Tolkien | J. R. R. Tolkien | The Fellowship of the Ring
1559328695095 | George R. R. Martin | George R. R. Martin | The Ice Dragon

Whereas we could instead have:

    rowtime   |        rowkey       | author              |         title
--------------+---------------------+---------------------+--------------------------
1559328693686 | C.S. Lewis          | C.S. Lewis          | The Silver Chair
1559328694429 | George R. R. Martin | George R. R. Martin | A Song of Ice and Fire
1559328694555 | C.S. Lewis          | C.S. Lewis          | Perelandra
1559328694696 | George R. R. Martin | George R. R. Martin | Fire & Blood
1559328694768 | J. R. R. Tolkien    | J. R. R. Tolkien    | The Hobbit
1559328694840 | J. R. R. Tolkien    | J. R. R. Tolkien    | The Lord of the Rings
1559328694924 | George R. R. Martin | George R. R. Martin | A Dream of Spring
1559328695002 | J. R. R. Tolkien    | J. R. R. Tolkien    | The Fellowship of the Ring
1559328695095 | George R. R. Martin | George R. R. Martin | The Ice Dragon

In general, I like copying what Postgres has for usability.

@agavra agavra self-assigned this Jul 2, 2019
@agavra
Copy link
Contributor

agavra commented Oct 29, 2019

Closing this out since we have everything other than color coding (which we can open a new feature request ticket if we'd like that)!

@rmoff
Copy link
Contributor Author

rmoff commented Nov 4, 2019

Thanks @agavra - I've raised #3728

@rmoff
Copy link
Contributor Author

rmoff commented Feb 6, 2020

Also #4457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants