use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "rootftp")]
#[command(
about = "A simple FTP Server",
long_about = "
RootFTP is a lightweight, plugin-enabled FTP service that allows you to extend file handling capabilities.It lives on your private network so you can play with plugins and files.
"
)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand)]
pub enum Commands {
Start {
#[arg(short, long)]
daemon: bool,
},
Stop,
Setdir {
_path: PathBuf,
},
Status,
Loadplugin {
_path: PathBuf,
},
Fetch,
Install {
plugin_name: String,
},
List,
}