aboutsummaryrefslogtreecommitdiff
path: root/mling/src/pkg_mgr/mod.rs
blob: 030529eb9f5a522563ab919e3b24f1e399b05af7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::ThisProgram;
use mingling::{
    Program,
    macros::{dispatcher, program_setup},
};

mod installer;
pub use installer::*;

dispatcher!("install");
dispatcher!("ls.namespace", CMDListNamespace => EntryListNamespace);
dispatcher!("rm.namespace", CMDRemoveNamespace => EntryRemoveNamespace);

#[program_setup]
pub fn package_manager_setup(p: &mut Program<ThisProgram>) {
    p.with_dispatcher(CMDInstall);
    p.with_dispatcher(CMDListNamespace);
    p.with_dispatcher(CMDRemoveNamespace);
}