detee-cli/src/general/mod.rs
2025-06-19 20:43:05 +03:00

19 lines
416 B
Rust

// SPDX-License-Identifier: Apache-2.0
pub mod cli_handler;
pub mod grpc;
pub mod operators;
pub mod packagers;
use crate::utils::block_on;
use crate::SimpleOutput;
pub fn report_node(
node_pubkey: String,
contract: String,
reason: String,
) -> Result<SimpleOutput, grpc::Error> {
block_on(grpc::report_node(node_pubkey, contract, reason))?;
Ok(SimpleOutput::from("The node got reported."))
}