* Remove chat and dissemination from nomos-cli * Dissemination using executor http client in nomos-cli * Blob retrieval from indexer using executor http client * Range reqeust type from nomos-node * Split executor and validator commands
22 lines
374 B
Rust
22 lines
374 B
Rust
pub mod cmds;
|
|
|
|
use clap::Parser;
|
|
use cmds::Command;
|
|
|
|
#[derive(Parser)]
|
|
#[command(author, version, about, long_about = None)]
|
|
pub struct Cli {
|
|
#[command(subcommand)]
|
|
command: Command,
|
|
}
|
|
|
|
impl Cli {
|
|
pub fn run(self) -> Result<(), Box<dyn std::error::Error>> {
|
|
self.command.run()
|
|
}
|
|
|
|
pub fn command(&self) -> &Command {
|
|
&self.command
|
|
}
|
|
}
|