Skip to main content

run

Function run 

Source
pub fn run(args: &[Vec<u8>]) -> u8
Expand description

Run redis-cli with args (without the program name); the exit code.

Output goes to the process’s stdout and stderr, as redis-cli’s does.

§Examples

// `--version` answers without a server and exits 0.
assert_eq!(kevy_cli::rcli::run(&[b"--version".to_vec()]), 0);