// Run kvsc with the store subcommand
Run kvsc with the store subcommand
Run kvsc with the store subcommand
pub fn run_kvsc_store(key: String, value: String) -> bool {
    let status = Command::new("target/release/kvsc")
        .args(&[
            "--silent",
            "store",
            "--key",
            key.as_str(),
            "--value",
            value.as_str(),
        ])
        .status()
        .expect("Failed to start kvsc process.");
    if status.success() {
        true
    } else {
        false
    }
}
pub fn run_kvsc_store ( key : String , value : String ) -> bool { let status = Command :: new ( " " ) . args ( & [ " " , " " , " " , key . as_str ( ) , " " , value . as_str ( ) , ] ) . status ( ) . expect ( " " ) ; if status . success ( ) { true } else { false } }
Run kvsc with the store subcommand
Run kvsc with the store subcommand
key
String
value
String