Add shell completion #68
12
build.rs
12
build.rs
|
@ -3,9 +3,7 @@ use anyhow::anyhow;
|
||||||
#[cfg(feature = "mysql-admutils-compatibility")]
|
#[cfg(feature = "mysql-admutils-compatibility")]
|
||||||
use std::{env, os::unix::fs::symlink, path::PathBuf};
|
use std::{env, os::unix::fs::symlink, path::PathBuf};
|
||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn generate_mysql_admutils_symlinks() -> anyhow::Result<()> {
|
||||||
#[cfg(feature = "mysql-admutils-compatibility")]
|
|
||||||
{
|
|
||||||
// NOTE: This is slightly illegal, and depends on implementation details.
|
// NOTE: This is slightly illegal, and depends on implementation details.
|
||||||
// But it is only here for ease of testing the compatibility layer,
|
// But it is only here for ease of testing the compatibility layer,
|
||||||
// and not critical in any way. Considering the code is never going
|
// and not critical in any way. Considering the code is never going
|
||||||
|
@ -36,7 +34,13 @@ fn main() -> anyhow::Result<()> {
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() -> anyhow::Result<()> {
|
||||||
|
#[cfg(feature = "mysql-admutils-compatibility")]
|
||||||
|
generate_mysql_admutils_symlinks()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue