26 lines
846 B
Rust
26 lines
846 B
Rust
|
use clap::{arg, command};
|
||
|
|
||
|
pub fn get_args() -> clap::ArgMatches {
|
||
|
command!()
|
||
|
.about("navOS Installer")
|
||
|
.subcommand(command!("create-iso").about("Create a new installation medium ISO"))
|
||
|
.subcommand(
|
||
|
command!()
|
||
|
.name("install")
|
||
|
.about("Install a system according to configuration")
|
||
|
.arg(arg!([config] "Config file").required(true)),
|
||
|
)
|
||
|
.subcommand(
|
||
|
command!()
|
||
|
.name("create-tar")
|
||
|
.about("Create a container tar image"),
|
||
|
)
|
||
|
.subcommand(
|
||
|
command!()
|
||
|
.name("create-img")
|
||
|
.about("Create an install on a disk image for VMs or embedded devices")
|
||
|
.arg(arg!([config] "Config file").required(true)),
|
||
|
)
|
||
|
.get_matches()
|
||
|
}
|