MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / CommandLineHandler

Interface CommandLineHandler

ipc/cli/src/lib.rs:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/// constructed from scratch.
19#[async_trait]
20pub trait CommandLineHandler {
21 /// Abstraction for command line operations arguments.
22 ///
23 /// NOTE that this parameter is used to generate the command line arguments.
24 /// Currently we are directly integrating with `clap` crate. In the future we can use our own
25 /// implementation to abstract away external crates. But this should be good for now.
26 type Arguments: std::fmt::Debug + Args;
27
28 /// Handles the request with the provided arguments. Dev should handle the content to print and how
29 async fn handle(global: &GlobalArguments, arguments: &Self::Arguments) -> anyhow::Result<()>;
30}
31
32/// The global arguments that will be shared by all cli commands.
33#[derive(Debug, Args, Clone, Default)]

Callers

nothing calls this directly

Implementers 15

daemon.rsipc/cli/src/commands/daemon.rs
default.rsipc/cli/src/commands/wallet/default.rs
export.rsipc/cli/src/commands/wallet/export.rs
new.rsipc/cli/src/commands/wallet/new.rs
remove.rsipc/cli/src/commands/wallet/remove.rs
balances.rsipc/cli/src/commands/wallet/balances.r
import.rsipc/cli/src/commands/wallet/import.rs
list.rsipc/cli/src/commands/wallet/list.rs
list_validator_changes.rsipc/cli/src/commands/checkpoint/list_v
quorum_reached.rsipc/cli/src/commands/checkpoint/quorum
relayer.rsipc/cli/src/commands/checkpoint/relaye
bottomup_bundles.rsipc/cli/src/commands/checkpoint/bottom

Calls

no outgoing calls

Tested by

no test coverage detected