committed by
GitHub
parent
b049151993
commit
de1ef08ce9
@@ -45,6 +45,7 @@ pub enum Step {
|
||||
Atom,
|
||||
Firmware,
|
||||
Restarts,
|
||||
Tldr,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug)]
|
||||
|
||||
@@ -336,6 +336,10 @@ fn run() -> Result<()> {
|
||||
config.no_retry(),
|
||||
)?;
|
||||
}
|
||||
|
||||
if config.should_run(Step::Tldr) {
|
||||
execute(&mut report, "TLDR", || unix::run_tldr(run_type), config.no_retry())?;
|
||||
}
|
||||
}
|
||||
|
||||
if config.should_run(Step::Rustup) {
|
||||
|
||||
@@ -79,6 +79,13 @@ pub fn run_home_manager(run_type: RunType) -> Result<()> {
|
||||
run_type.execute(&home_manager).arg("switch").check_run()
|
||||
}
|
||||
|
||||
pub fn run_tldr(run_type: RunType) -> Result<()> {
|
||||
let tldr = require("tldr")?;
|
||||
|
||||
print_separator("TLDR");
|
||||
run_type.execute(&tldr).args(&["--update", "-v"]).check_run()
|
||||
}
|
||||
|
||||
pub fn run_pearl(run_type: RunType) -> Result<()> {
|
||||
let pearl = require("pearl")?;
|
||||
print_separator("pearl");
|
||||
|
||||
Reference in New Issue
Block a user