eh: add eh update or nu in symlink

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iee1d7c2ed2c4b2cd5520c68ceb2b5e6d6a6a6964
This commit is contained in:
raf 2026-01-30 20:54:29 +03:00
commit 5dc7b1dcd4
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
7 changed files with 188 additions and 15 deletions

View file

@ -11,4 +11,4 @@ publish = false
[dependencies]
clap.workspace = true
clap_complete.workspace = true
eh.workspace = true
eh.workspace = true

View file

@ -42,6 +42,7 @@ enum Binary {
Nr,
Ns,
Nb,
Nu,
}
impl Binary {
@ -50,6 +51,7 @@ impl Binary {
Self::Nr => "nr",
Self::Ns => "ns",
Self::Nb => "nb",
Self::Nu => "nu",
}
}
}
@ -90,7 +92,7 @@ fn create_multicall_binaries(
);
}
let multicall_binaries = [Binary::Nr, Binary::Ns, Binary::Nb];
let multicall_binaries = [Binary::Nr, Binary::Ns, Binary::Nb, Binary::Nu];
let bin_path = Path::new(bin_dir);
for binary in multicall_binaries {
@ -153,7 +155,7 @@ fn generate_completions(
println!("completion file generated: {}", completion_file.display());
// Create symlinks for multicall binaries
let multicall_names = ["nb", "nr", "ns"];
let multicall_names = ["nb", "nr", "ns", "nu"];
for name in &multicall_names {
let symlink_path = output_dir.join(format!("{name}.{shell}"));
if symlink_path.exists() {