313 Commits

Author SHA1 Message Date
antirez
921feadb64 redis-cli --eval implemented 2011-12-13 16:22:28 +01:00
antirez
8efbbaf821 Fixed a memory leak in redis-cli.c 2011-10-28 17:43:04 +02:00
antirez
5d78296230 Totally hackish and dirty, but working, support for Redis Cluster in redis-cli 2011-10-05 19:55:33 +02:00
Salvatore Sanfilippo
bcbb91e6e3 Merge pull request #97 from jvain/redis-cli
redis-cli segfaults with single numeric argument greater than zero
2011-09-21 13:32:24 -07:00
Juri M. Vainonen
2d52506bc2 fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero. 2011-09-21 23:22:14 +03:00
antirez
68c4acd91b Fixed a bug in the average latency metering of redis-cli --latency 2011-09-15 19:33:24 +02:00
antirez
84c42e7da3 Implemented --latency in redis-cli 2011-09-15 19:28:00 +02:00
antirez
e257c6bd24 redis-cli: -i (interval) implemented, to wait the specified number of seconds (decimal digits are allowed) between commands. 2011-05-28 15:41:08 +02:00
antirez
23695bffd6 redis-cli: Use the repetiton prefix after a reconnection. 2011-05-28 15:25:48 +02:00
antirez
afe31333d6 redis-cli in REPL mode is now able to send the same command multiple times, prefixing the command with a number as in "10 ping" 2011-05-28 15:13:55 +02:00
antirez
152d26cfe6 redis-cli no longer aborts in repl-mode on error, and retries to reconncet with the server at every command issued if the state is not connected. Also the prompt shows the server we are connected to. 2011-05-28 15:04:12 +02:00
antirez
8a3ff7cff3 CLIENT LIST implemented 2011-04-21 15:38:02 +02:00
antirez
b2b9d54320 Cluster branch merged to unstable. 2011-03-29 17:51:15 +02:00
Pieter Noordhuis
a98b288aac Show database number in cli prompt when non-zero 2011-03-06 21:14:40 +01:00
Pieter Noordhuis
8c86583a31 Store SELECTed database for reconnect (issue #468) 2011-03-06 20:46:49 +01:00
Pieter Noordhuis
b31d5e7305 Minor memory leak in redis-cli (issue #464) 2011-03-06 20:13:01 +01:00
Pieter Noordhuis
cd998263fd Only save history when stdin is a tty (issue #465) 2011-03-06 20:02:33 +01:00
Pieter Noordhuis
11993c1a39 Fix compiler warnings on Solaris 2010-12-23 11:26:11 +00:00
Pieter Noordhuis
3ff39af1ef Specify multi-bulk delimiter via options 2010-12-15 16:02:07 +01:00
Pieter Noordhuis
97cc65a109 Improved raw output mode
Raw output mode is selected by default when STDOUT is not a tty. For
ttys, raw output can be forced using the option "--raw".
2010-12-15 15:59:06 +01:00
Pieter Noordhuis
58b40bad22 Make redis-cli help a little better 2010-12-15 15:00:47 +01:00
Pieter Noordhuis
bb723d277b Show redis-cli version with repository information if present 2010-12-15 14:34:05 +01:00
antirez
83fac5eeea added support for ctrl-l and clear command into redis-cli. To clear the screen is a good idea from time to time :). Also linenoise updated to the current version to support this new feature. 2010-12-01 11:18:59 +01:00
antirez
83696b5d4a minor merge conflicts merging cli-help branch fixed 2010-11-30 11:39:55 +01:00
Pieter Noordhuis
a074c2c8ba Refactor and support help for command names with spaces 2010-11-29 20:26:32 +01:00
Pieter Noordhuis
bbcfaf0114 Use linenoise completion API from redis-cli 2010-11-29 19:27:36 +01:00
antirez
1bb935b912 quick and dirty fix for hiredis bug creating problem with the new redis-cli connect commmand. Also change prompt when redis-cli is not connected 2010-11-29 12:20:17 +01:00
antirez
d50a6adcbf new redis-cli command connect 2010-11-29 12:17:55 +01:00
Pieter Noordhuis
c99c78f359 Refactor help-related code into redis-cli.c 2010-11-28 21:37:19 +01:00
Pieter Noordhuis
a2fe52659a Merge remote branch 'visionmedia/cli-help' into cli-help 2010-11-26 20:46:42 +01:00
Tj Holowaychuk
d268e36a27 Added redis-cli interactive help support
updated via commands.json in redis-doc repo. Currently
use `make src/help.h` to re-generate. The following
are valid from the REPL:

  help
  help [command]
  help [group]
  help groups

ex:

  help sort
  help hash
2010-11-16 05:50:26 -08:00
antirez
0c95631468 now redis-cli is able to show the Git SHA1 in the version output 2010-11-08 16:26:02 +01:00
antirez
e2759a75b5 make sure to flush stdout every line read in monitor mode, to play well with redirection to file 2010-11-08 16:14:15 +01:00
Pieter Noordhuis
a2f7249e2d Put duration in parenthesis 2010-11-03 17:07:10 +01:00
Pieter Noordhuis
319455f61f Add proper numbering for multi bulk replies in redis-cli 2010-11-03 17:03:54 +01:00
Pieter Noordhuis
9ec0c971fb Use hiredis from redis-cli 2010-11-03 16:09:38 +01:00
antirez
a9c740ac44 Merge remote branch 'pietern/unixsocket' 2010-11-02 23:47:52 +01:00
antirez
fbd0387665 redis-cli in interactive mode now prints the time elapsed of the operation performed took more than half a second. 2010-11-02 18:08:30 +01:00
Pieter Noordhuis
b9accd41ec Removed unused command flags 2010-10-17 17:31:40 +02:00
Pieter Noordhuis
4158de4e63 Merge master with resolved conflict in src/redis-cli.c 2010-10-13 18:55:46 +02:00
antirez
7f5d45e689 minor typo fixed, reported by Thomas Bassetto 2010-10-07 12:49:14 +02:00
antirez
db7db7b267 redis-cli does no longer try to auto detect if it is used inside a pipe. To read last argument from stdandard input there is to use the -x option. This will make it playing better inside cron scripts and in general when stdin is hacked. 2010-09-09 16:38:10 +02:00
antirez
8079656a8e Now redis-cli replies to help showing some basic usage information (Issue 291) 2010-08-30 15:57:03 +02:00
antirez
93b2a7718e It is now possible to use authentication and DB selection options at the same time in redis-cli (Issue 298) 2010-08-30 15:36:13 +02:00
antirez
e0e1c19520 Fixed MONITOR mode and Issue 296 2010-08-30 11:51:45 +02:00
Pieter Noordhuis
b4b62c34db Use fstat to detect if stdin was redirected 2010-08-25 14:48:50 +02:00
Pieter Noordhuis
ae77016e57 Add a newline to tty output after every reply 2010-08-25 13:39:11 +02:00
Pieter Noordhuis
5d15b5207d Re-introduce the interactive field so we can reconnect in interactive mode 2010-08-25 13:09:22 +02:00
Pieter Noordhuis
4b93e5e267 Merge master and move argument splitting patch to sds.c 2010-08-25 13:08:43 +02:00
antirez
c0b3d42372 redis-cli now supports automatically reconnection in interactive mode 2010-08-24 18:39:34 +02:00