mirror of
https://github.com/winapps-org/winapps.git
synced 2025-08-07 11:18:26 +02:00
feat: create and start vm via quickemu
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use clap::Command;
|
||||
use winapps::quickemu::{create_vm, run_vm};
|
||||
|
||||
fn cli() -> Command {
|
||||
Command::new("winapps-cli")
|
||||
@@ -8,6 +9,8 @@ fn cli() -> Command {
|
||||
.allow_external_subcommands(true)
|
||||
.subcommand(Command::new("check").about("Checks remote connection"))
|
||||
.subcommand(Command::new("connect").about("Connects to remote"))
|
||||
.subcommand(Command::new("create-vm").about("Create a windows 10 vm using quickemu"))
|
||||
.subcommand(Command::new("run-vm").about("Start the vm using quickemu"))
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -23,6 +26,14 @@ fn main() {
|
||||
Some(("connect", _)) => {
|
||||
println!("Connecting to remote");
|
||||
}
|
||||
Some(("create-vm", _)) => {
|
||||
println!("Creating windows 10 vm..");
|
||||
create_vm();
|
||||
}
|
||||
Some(("run-vm", _)) => {
|
||||
println!("Starting vm..");
|
||||
run_vm();
|
||||
}
|
||||
Some((_, _)) => {
|
||||
cli.about("Command not found, try existing ones!")
|
||||
.print_help()
|
||||
|
Reference in New Issue
Block a user