-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add an option to change default cli prompt #114
Comments
I don't think it's necessary, so I can know more clearly that I am currently on the redis server. |
@guoweikuang Yes normally you don't need this, only if you want to make the prompt shorter on purpose. For example, your redis domain name is too long. When you do this, like |
The usage like this:
|
Client source port is supported. |
connection id; |
server cluster name; |
I'm embedding iredis into an in-house CLI for our engineering team, and the Would you accept a PR in that direction? |
@aymericbeaumet sure thing. Is #114 (comment) looks good to you? and what placeholders do you want?
any others? |
Yes, that should be doable using some kind of template engine (I'm not a Python developer).
Yes that looks good. Nothing else comes to mind atm. I guess it will be easy to add once we get the basic structure in place. |
@laixintao ready for review: #437 |
@aymericbeaumet iredis 1.12.1 released, enjoy. FYI, documentation updated: Change The Default PromptYou can change the prompt str, the default prompt is: 127.0.0.1:6379> Which is rendered by
The |
@laixintao Great work thanks! |
See the discussion here:
http://redisdoc.com/transaction/exec.html#comment-4588712198
https://stackoverflow.com/questions/52690515/change-redis-command-prompt-text/52691005
The text was updated successfully, but these errors were encountered: