diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-07 15:18:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-07 15:18:24 +0800 |
| commit | 8aa276beb88086b866be8a446289106be237348a (patch) | |
| tree | e9081d7b417fee79e59d55bde75ef5de71646121 /mling/src/proj_mgr/mod.rs | |
| parent | 81b348ade98ec12516d0e43e2dc930e1cb3a27a5 (diff) | |
Add hformat_cargo, hprintln_cargo macros and help rendering
Diffstat (limited to 'mling/src/proj_mgr/mod.rs')
| -rw-r--r-- | mling/src/proj_mgr/mod.rs | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/mling/src/proj_mgr/mod.rs b/mling/src/proj_mgr/mod.rs index 381784c..07a9910 100644 --- a/mling/src/proj_mgr/mod.rs +++ b/mling/src/proj_mgr/mod.rs @@ -1,6 +1,20 @@ -use mingling::macros::dispatcher; +use crate::ThisProgram; +use mingling::{ + Program, + macros::{dispatcher, program_setup}, +}; -dispatcher!("install"); +pub mod metadata; -dispatcher!("ls.namespace", CMDListNamespace => EntryListNamespace); -dispatcher!("rm.namespace", CMDRemoveNamespace => EntryRemoveNamespace); +dispatcher!("show.binaries"); +dispatcher!("show.workspace"); +dispatcher!("show.target-dir", + CMDShowTargetDirectories => EntryShowTargetDirectories +); + +#[program_setup] +pub fn project_manager_setup(p: &mut Program<ThisProgram>) { + p.with_dispatcher(CMDShowBinaries); + p.with_dispatcher(CMDShowWorkspace); + p.with_dispatcher(CMDShowTargetDirectories); +} |
