We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3707d59 + 68e00a1 commit 6ba0990Copy full SHA for 6ba0990
src/lib.rs
@@ -1,10 +1,21 @@
1
-use cmd_lib_core;
2
-use cmd_lib_macros;
+pub use cmd_lib_core;
+pub use cmd_lib_macros;
3
4
-pub use cmd_lib_macros::{
5
- run_cmd,
6
- run_fun,
7
-};
+#[macro_export]
+macro_rules! run_cmd {
+ ($($cur:tt)*) => {{
+ use $crate::cmd_lib_core;
8
+ $crate::cmd_lib_macros::run_cmd!($($cur)*)
9
+ }};
10
+}
11
+
12
13
+macro_rules! run_fun {
14
15
16
+ $crate::cmd_lib_macros::run_fun!($($cur)*)
17
18
19
20
pub use cmd_lib_core::{
21
run_cmd,
0 commit comments