committed by
GitHub
parent
9c9c92796b
commit
3f80bee53a
12
src/main.rs
12
src/main.rs
@@ -6,6 +6,8 @@ mod execution_context;
|
||||
mod executor;
|
||||
mod report;
|
||||
mod runner;
|
||||
#[cfg(windows)]
|
||||
mod self_renamer;
|
||||
#[cfg(feature = "self-update")]
|
||||
mod self_update;
|
||||
mod steps;
|
||||
@@ -92,6 +94,16 @@ fn run() -> Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
let _self_rename = if config.self_rename() {
|
||||
Some(crate::self_renamer::SelfRenamer::create()?)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let mut s = String::new();
|
||||
std::io::stdin().read_line(&mut s)?;
|
||||
|
||||
if let Some(commands) = config.pre_commands() {
|
||||
for (name, command) in commands {
|
||||
generic::run_custom_command(&name, &command, &ctx)?;
|
||||
|
||||
Reference in New Issue
Block a user