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

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);
}