umanux 0.1.1

Library for managing Linux users and their directories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate umanux;
use umanux::api::UserDBRead;

fn main() {
    simplelog::CombinedLogger::init(vec![simplelog::TermLogger::new(
        simplelog::LevelFilter::Warn,
        simplelog::Config::default(),
        simplelog::TerminalMode::Mixed,
    )])
    .unwrap();

    let db = umanux::UserDBLocal::load_files(umanux::Files::default()).unwrap();

    for u in db.get_all_users() {
        println!("{}", u);
    }
}