lunes_cli/node/mod.rs
1pub mod exec;
2use clap::{Args, Subcommand};
3
4/// Commands to management your Lunes Node
5#[derive(Debug, Args)]
6#[clap(args_conflicts_with_subcommands = true)]
7pub struct Node {
8 #[clap(subcommand)]
9 pub command: Option<NodeCommands>,
10}
11
12#[derive(Debug, Subcommand)]
13pub enum NodeCommands {
14 /// Install Lunes Node by version
15 Install(NodeInstall),
16 /// Version of your Lunes Node
17 Version,
18 /// Edit config of your Lunes Node
19 Config,
20 /// Status of your Lunes Node
21 Status,
22 /// Shutdown your Lunes Node
23 Down,
24 /// Follow your Lunes Node logs
25 Logs,
26 /// Turn On your Lunes Node
27 Up,
28}
29
30#[derive(Debug, Args)]
31pub struct NodeInstall {
32 #[clap(short, long)]
33 pub version: Option<String>,
34}