laixintao / iredis Goto Github PK
View Code? Open in Web Editor NEWInteractive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
Home Page: https://iredis.xbin.io
License: BSD 3-Clause "New" or "Revised" License
Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
Home Page: https://iredis.xbin.io
License: BSD 3-Clause "New" or "Revised" License
based on common style.
Redis-py's connection behavior is different from "redis-cli":
redis-cli behaivor.
- [ ] hide password(but supply option to show)
All command args, double quotes and single quotes need to be striped.
DEBUG [grammar compile time] 0.6472580432891846
DEBUG [timer] Grammer created: 9.5367431640625e-07 from start.
INFO iredis start, host=127.0.0.1, port=6379, db=0.
DEBUG Using selector: KqueueSelector
DEBUG [timer] First REPL: 0.04548501968383789 from start.
DEBUG REPL waiting for command...
Takes 0.64secnds to compile when startup, painful slow.
Opened an issue for the toolkit. Currently, we have the color issue, others are fine.
When results too long, use pager.
Add a config to disable this.
➜ [iredis] iredis git:(master) ✗ iredis
127.0.0.1:6379[0]> hgetall redbeat:task::owner-admin:taskid-91
(error) name 'response' is not defined
Hung-I Wang, [19.08.19 16:53]
b"'\""
Hung-I Wang, [19.08.19 17:33]
[In reply to hooboo]
"".join([("\\" + chr(byte) if chr(byte) == '"' else chr(byte)) if byte < 127 and chr(byte).isprintable() else f"\\x{byte:02x}" for byte in t])
current:
"\'\\""
expect:
"'\\\""
pip install iredis[jq]
GET key | jq "."
Single Column complete:
command (group with color) | summary
footer:
Consider adding a new command auto-check key's type first, then get its value based on type.
INSPECT key
?
keys *
, which will cause redis stop service;FLUSHDB
, use prompt to ask Do you want to proceed?
low
mode, you can execute any command without prompt check.https://github.com/antirez/redis-doc
May need to figure out how to display markdown in terminal.
Test on all redis-server stable version on circle ci.
RPUSH key value [value ...]
summary: Append one or multiple values to a list
since: 1.0.0
time complexity: O(1)
not code.
"+OK\r\n"
iredisrc
|1 100|101 200|
127.0.0.1:6379[0]>
in red;Command name
blobsupport command line args
Current prompt_toolkit not support.
support encoding, decoding.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.