Skip to content

Commit

Permalink
Merge pull request #14 from gdetal/reexport_macros
Browse files Browse the repository at this point in the history
remove dependency to cmd_lib_core
  • Loading branch information
rust-shell-script authored Oct 17, 2020
2 parents 3707d59 + 68e00a1 commit 6ba0990
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
use cmd_lib_core;
use cmd_lib_macros;
pub use cmd_lib_core;
pub use cmd_lib_macros;

pub use cmd_lib_macros::{
run_cmd,
run_fun,
};
#[macro_export]
macro_rules! run_cmd {
($($cur:tt)*) => {{
use $crate::cmd_lib_core;
$crate::cmd_lib_macros::run_cmd!($($cur)*)
}};
}

#[macro_export]
macro_rules! run_fun {
($($cur:tt)*) => {{
use $crate::cmd_lib_core;
$crate::cmd_lib_macros::run_fun!($($cur)*)
}};
}

pub use cmd_lib_core::{
run_cmd,
Expand Down

0 comments on commit 6ba0990

Please sign in to comment.