Attribute Macro sh_builtin_bash_proc::bash_builtin [−][src]
#[bash_builtin]
Exports the current function as a Bash shell builtin function. This requires the crate to be built as a cdylib.
Example
# use sh_builtin_bash_proc::bash_builtin;
#[bash_builtin(function = "hello_world")]
fn hello(args: &Vec<String>) -> std::result::Result<(), Box<dyn std::error::Error>> {
println!("Hello, world!");
Ok(())
}