aboutsummaryrefslogtreecommitdiff
path: root/mling/src/proj_mgr/mod.rs
blob: 04353b73b4187ac53f79f97a7fa7d7ac32416817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use crate::ThisProgram;
use mingling::{
    Program,
    macros::{dispatcher, program_setup},
};

mod generator;
pub use generator::*;

pub mod metadata;

mod show_binaries;
pub use show_binaries::*;

mod show_directories;
pub use show_directories::*;

dispatcher!("gen", CMDGenerateProject => EntryGenerateProject);

dispatcher!("show.binaries");
dispatcher!("show.workspace-dir",
    CMDShowWorkspaceDirectory => EntryShowWorkspaceDirectory
);
dispatcher!("show.target-dir",
    CMDShowTargetDirectories => EntryShowTargetDirectories
);

#[program_setup]
pub fn project_manager_setup(p: &mut Program<ThisProgram>) {
    p.with_dispatcher(CMDGenerateProject);

    p.with_dispatcher(CMDShowBinaries);
    p.with_dispatcher(CMDShowWorkspaceDirectory);
    p.with_dispatcher(CMDShowTargetDirectories);
}