|
|
@ -133,6 +133,10 @@ fn main() {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
.subcommand(
|
|
|
|
|
|
|
|
SubCommand::with_name("nix")
|
|
|
|
|
|
|
|
.about("Install nix"),
|
|
|
|
|
|
|
|
)
|
|
|
|
.subcommand(
|
|
|
|
.subcommand(
|
|
|
|
SubCommand::with_name("config")
|
|
|
|
SubCommand::with_name("config")
|
|
|
|
.about("read a jade installation config")
|
|
|
|
.about("read a jade installation config")
|
|
|
@ -199,9 +203,11 @@ fn main() {
|
|
|
|
base::genfstab();
|
|
|
|
base::genfstab();
|
|
|
|
} else if app.subcommand_matches("setup-timeshift").is_some() {
|
|
|
|
} else if app.subcommand_matches("setup-timeshift").is_some() {
|
|
|
|
base::setup_timeshift();
|
|
|
|
base::setup_timeshift();
|
|
|
|
|
|
|
|
} else if app.subcommand_matches("nix").is_some() {
|
|
|
|
|
|
|
|
base::install_homemgr();
|
|
|
|
} else if let Some(app) = app.subcommand_matches("config") {
|
|
|
|
} else if let Some(app) = app.subcommand_matches("config") {
|
|
|
|
crate::internal::config::read_config(app.value_of("config").unwrap());
|
|
|
|
crate::internal::config::read_config(app.value_of("config").unwrap());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
println!("Running TUI installer");
|
|
|
|
println!("{}", app.usage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|