elba 0.3.0

elba is a package manager for Idris
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::{App, ArgMatches, SubCommand};
use elba::util::{config::Config, errors::Res};
use toml;

pub fn cli() -> App<'static, 'static> {
    SubCommand::with_name("print-config").about("Prints elba's configuration")
}

pub fn exec(c: &mut Config, _args: &ArgMatches) -> Res<String> {
    println!("{}", toml::Value::try_from(&c).unwrap());

    Ok("".to_string())
}