Skip to content

Commit

Permalink
Add search action
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Oct 8, 2024
1 parent 88ae103 commit 1fa69fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ fn main() -> Result<()> {
.parse::<i64>()?;
rpc::call_remote_procedure("getuseractivity", json!({"id":id,"limit":limit}))?;
}
"search" => {
let query = get_arg(&mut args)?;
rpc::call_remote_procedure("search", json!({"query":query}))?;
}
_ => {
eprintln!("action {action} does not exist, check btcmap-cli help to see all available actions")
}
Expand Down Expand Up @@ -181,4 +185,5 @@ fn help() {
println!("add-allowed-action <admin_name:string> <action:string>");
println!("remove-allowed-action <admin_name:string> <action:string>");
println!("get-user-activity <id:string> [limit:int]");
println!("search <query:string>");
}

0 comments on commit 1fa69fc

Please sign in to comment.