remove rpc, cli start
This commit is contained in:
12
src/cli/add.rs
Normal file
12
src/cli/add.rs
Normal file
@ -0,0 +1,12 @@
|
||||
use clap::{ArgMatches, Command, arg};
|
||||
|
||||
pub fn create_subcommand() -> Command {
|
||||
Command::new("add")
|
||||
.about("add a server")
|
||||
.arg(arg!(<NAME> "Name of the server"))
|
||||
.arg(arg!(-v --version <VERSION> "minecraft version of the server"))
|
||||
}
|
||||
|
||||
pub fn subcommand(arg: &ArgMatches) {
|
||||
println!("got add, sub : {:?}", arg);
|
||||
}
|
||||
Reference in New Issue
Block a user