Skip to content

Commit

Permalink
Add get-user-activity command
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Oct 7, 2024
1 parent aeca83b commit 06ae9b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ fn main() -> Result<()> {
json!({"admin_name":admin_name,"action":action}),
)?;
}
"get-user-activity" => {
let id = get_arg(&mut args)?;
let limit = get_arg(&mut args)
.unwrap_or(100000.to_string())
.parse::<i64>()?;
rpc::call_remote_procedure("getuseractivity", json!({"id":id,"limit":limit}))?;
}
_ => {
eprintln!("action {action} does not exist, check btcmap-cli help to see all available actions")
}
Expand Down Expand Up @@ -173,4 +180,5 @@ fn help() {
println!("sync-elements");
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]");
}

0 comments on commit 06ae9b2

Please sign in to comment.