News for hackers. Stuff that matters.
Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by dpbriggs on Monday February 17, 2020 @05:25PM (#22351482)
This is really great! The tui is very intuitive and the auto-complete a great addition.

It even highlights keys and values differently: https://i.imgur.com/mrOMBUi.png

It also handles redis server weirdness as well by faithfully relaying error messages.

I haven't explored the tool too deeply but would it be possible to get keys from redis itself to assist with auto-complete?

Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by laixintao on Monday February 17, 2020 @08:06PM (#22352527)
Hi dpbriggs!

I think it is a good idea to auto fetching the keys (among ohter things like set's members, etc). I wrote some ideas here, it was on the plan!

https://github.com/laixintao/iredis/issues/255

Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by fiatjaf on Wednesday February 19, 2020 @04:24PM (#22370249)
I installed it with the only hope it would recognize Redis URIs like redis://name:password@host:port/db, unlike redis-cli, which requires me to type each part of the URI separated in different flags I never remember.

Turns out it doesn't, but maybe someone will hear me in the future!

Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by laixintao on Sunday March 01, 2020 @09:04AM (#22456866)
Hi fiatjaf,

This feature has been implemented and released on v1.2, please give it a try!

Also, you can store dsn alias on config, check it out: https://github.com/laixintao/iredis#using-dsn

Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by fiatjaf on Monday March 02, 2020 @10:01AM (#22464929)
Great, iredis --url will save my life, thank you!
Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by laixintao on Wednesday February 19, 2020 @08:41PM (#22372042)
Hi! Will add this feature.

Also, a new feature called alias_dsn was on the way.

https://github.com/laixintao/iredis/issues/268

Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by drivers99 on Monday February 17, 2020 @04:39PM (#22351081)
I just took a peek in the code to make sure it didn't use the "keys" command. I see you give a warning for a list of dangerous commands. Good thinking!
Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by laixintao on Monday February 17, 2020 @08:13PM (#22352565)
Yes currently iredis won't send any command secretly, behave like redis-cli. The completion is based on history.
Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by kbumsik on Monday February 17, 2020 @08:05PM (#22352522)
That looks great! I guess it can support other DB from its base.
Re:Show HN: IRedis: CLI for Redis with AutoCompletion and Sy... by laixintao on Monday February 17, 2020 @08:07PM (#22352535)
Yes, have look at the project page: iredis.io/

You may also like https://www.dbcli.com/ (actually iredis is joining dbcli)