aboutsummaryrefslogtreecommitdiff
path: root/mling/src/proj_mgr/mod.rs
blob: e0a4216cd2bc1e13ae784259212c9ea2d269723b (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
use crate::ThisProgram;
use mingling::{
    Program,
    macros::{dispatcher, program_setup},
};

pub mod checklist_reader;
pub mod generator;
pub mod metadata;
pub mod show_binaries;
pub mod 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);
}