eh: add missing eh dev command; add --ask for sensitive operations
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If48f4d337c62dad669af97f9e97c1cb76a6a6964
This commit is contained in:
parent
1174e4496b
commit
f87bc4158c
5 changed files with 101 additions and 12 deletions
|
|
@ -45,6 +45,7 @@ enum Binary {
|
|||
Nd,
|
||||
Ni,
|
||||
Nu,
|
||||
Dev,
|
||||
}
|
||||
|
||||
impl Binary {
|
||||
|
|
@ -56,6 +57,7 @@ impl Binary {
|
|||
Self::Nd => "nd",
|
||||
Self::Ni => "ni",
|
||||
Self::Nu => "nu",
|
||||
Self::Dev => "dev",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -103,6 +105,7 @@ fn create_multicall_binaries(
|
|||
Binary::Nd,
|
||||
Binary::Ni,
|
||||
Binary::Nu,
|
||||
Binary::Dev,
|
||||
];
|
||||
let bin_path = Path::new(bin_dir);
|
||||
|
||||
|
|
@ -166,7 +169,7 @@ fn generate_completions(
|
|||
println!("completion file generated: {}", completion_file.display());
|
||||
|
||||
// Create symlinks for multicall binaries
|
||||
let multicall_names = ["nb", "nd", "ni", "nr", "ns", "nu"];
|
||||
let multicall_names = ["dev", "nb", "nd", "ni", "nr", "ns", "nu"];
|
||||
for name in &multicall_names {
|
||||
let symlink_path = output_dir.join(format!("{name}.{shell}"));
|
||||
if symlink_path.exists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue