added cli arguments and planned plugin loader support

This commit is contained in:
Jonas_Jones 2022-10-18 00:28:17 +02:00
parent 358f3be677
commit ecdacee67c

View file

@ -1,7 +1,9 @@
use std::env;
pub(crate) fn help() pub(crate) fn help()
{ {
println!("Moddah is a managing tool for Minecraft modded clients and servers. println!("Moddah is a managing tool for Minecraft modded and plugin servers.
The supported toolchains are FabricMC, ForgeModLoader, QuiltMC. The supported toolchains are FabricMC, ForgeModLoader, QuiltMC, SpigotMC.
Usage: Usage:
moddah moddah
@ -41,3 +43,21 @@ Options:
- [directory of choice] - [directory of choice]
") ")
} }
pub(crate) fn version()
{
println!("Moddah version {}-{}({})", env!("CARGO_PKG_VERSION"), env::consts::OS, env::consts::ARCH);
std::process::exit(0);
}
pub(crate) fn install()
{
println!("install");
}
pub(crate) fn uninstall()
{
println!("To uninstall a modloader instance, simply delete the directory of the instance.
As of right now there is no way to uninstall an instance with the moddah CLI.
");
}