1
0

refactor: remove old exec file

This commit is contained in:
2026-05-09 20:10:15 +08:00
parent a6322bff51
commit 7f36375a73
2 changed files with 10 additions and 164 deletions

View File

@@ -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(())
}