gauc 0.3.0

Couchbase Rust Adapter / CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::super::callback::get::get_callback;
use super::super::super::client::Client;

/// Handle "remove" command
pub fn cmd_remove(client: &mut Client, parts: &Vec<&str>) -> bool {
    match parts.len() {
        2 => {
            // TODO: Add support for cas option
            client.get(parts[1], 0, get_callback);
        },
        _ => println!("Wrong number of arguments, expect exactly one argument.")
    }
    return true;
}