refactor: remove old exec file
This commit is contained in:
@@ -82,11 +82,15 @@ fn stringified_exts_to_indices(
|
||||
// region: Respective Runners
|
||||
|
||||
fn run_register(mut program: wfassoc::Program, scope: wfassoc::Scope) -> Result<()> {
|
||||
Ok(program.register(scope)?)
|
||||
program.register(scope)?;
|
||||
println!("Application now is installed.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_unregister(mut program: wfassoc::Program, scope: wfassoc::Scope) -> Result<()> {
|
||||
Ok(program.unregister(scope)?)
|
||||
program.unregister(scope)?;
|
||||
println!("Application now is uninstalled.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_status(program: wfassoc::Program, scope: wfassoc::Scope) -> Result<()> {
|
||||
@@ -108,6 +112,8 @@ fn run_ext_link(
|
||||
for index in exts {
|
||||
program.link_ext(scope, index)?;
|
||||
}
|
||||
|
||||
println!("File extension now is linked.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -120,6 +126,8 @@ fn run_ext_unlink(
|
||||
for index in exts {
|
||||
program.link_ext(scope, index)?;
|
||||
}
|
||||
|
||||
println!("File extension now is unlinked.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user