Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
1–10 of 11 posts
Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#2Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#3It 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 Syntax Highlighting
#4Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#5This 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?
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!
Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#6That looks great! I guess it can support other DB from its base.
You may also like https://www.dbcli.com/ (actually iredis is joining dbcli)
Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#7I 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 Syntax Highlighting
#8Turns out it doesn't, but maybe someone will hear me in the future!
Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#9I 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!
Also, a new feature called alias_dsn was on the way.
Re: Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting
#10I 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!
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