Skip to content

Commit

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

0 comments on commit 5dbddb0

Please sign in to comment.