lunes_cli/
lib.rs

1pub mod node;
2pub mod wallet;
3
4use clap::{Parser, Subcommand};
5use node::Node;
6use std::ffi::OsString;
7use wallet::Wallet;
8
9/// lunes cli management for full-node and wallet
10#[derive(Parser, Debug)]
11#[clap(name = "lunes")]
12#[clap(bin_name = "lunes")]
13#[clap(about = "Lunes CLI management for full-node and wallet", long_about = None)]
14pub struct Cli {
15    #[clap(subcommand)]
16    pub command: Commands,
17}
18
19#[derive(Debug, Subcommand)]
20pub enum Commands {
21    Node(Node),
22    Wallet(Wallet),
23    #[clap(external_subcommand)]
24    External(Vec<OsString>),
25}