Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
redis-cli
main
CLI
Repl
Console
Redis
CommandParser
Connection
Protocol
BinarySafeString
Command
Error
Integer
NonBinarySafeString
Null
RedisArray
Value
ResultFormatter
Socket
Transport
Error
TimeoutError
Built with Crystal 1.9.2
2023-10-07 17:43:29 UTC
class
CLI::Repl::Console
CLI::Repl::Console
Reference
Object
Defined in:
applications/cli/repl/console.cr
Constant Summary
HISTORY_FILE
=
"
#{
Path
.home
}
/.crystal_redis_cli_history"
Constructors
.new
(prompt : String, input_stream : IO =
STDIN
, output_stream : IO =
STDOUT
)
Instance Method Summary
#on_input
(&block : String -> String) : Nil
#run
Constructor Detail
def self.
new
(prompt : String, input_stream : IO =
STDIN
, output_stream : IO =
STDOUT
)
#
[
View source
]
Instance Method Detail
def
on_input
(&block : String -> String) : Nil
#
[
View source
]
def
run
#
[
View source
]