/// Creates a `Clog` struct using a specific git working directory and project directory as
/// well as a custom named TOML configuration file.
///
/// # Example
///
/// ```no_run
/// # use clog::Clog;
/// let clog = Clog::with_all("/myproject/.git",
///                           "/myproject",
///                           "/myproject/clog_conf.toml").unwrap_or_else(|e| {
///     e.exit();
/// });
/// ```
Creates a `Clog` struct using a specific git working directory and project directory as
well as a custom named TOML configuration file.
Creates a ` Clog ` struct using a specific git working directory and project directory as well as a custom named TOML configuration file .
pub fn with_all<P: AsRef<Path>>(git_dir: P, work_tree: P, cfg_file: P) -> BuilderResult {
        debugln!("Creating clog with \n\tgit_dir: {:?}\n\twork_tree: {:?}\n\tcfg_file: {:?}",
            git_dir.as_ref(),
            work_tree.as_ref(),
            cfg_file.as_ref());
        let clog = try!(Clog::with_dirs(git_dir,
                                            work_tree));
        clog.try_config_file(cfg_file.as_ref())
    }
pub fn with_all < P : AsRef < Path > > ( git_dir : P , work_tree : P , cfg_file : P ) -> BuilderResult { debugln ! ( " \n \t \n \t \n \t " git_dir as_ref ( ) work_tree as_ref ( ) cfg_file as_ref ( ) ) ; let clog = try ! ( Clog with_dirs ( git_dir work_tree ) ) ; clog . try_config_file ( cfg_file . as_ref ( ) ) }
Creates a `Clog` struct using a specific git working directory and project directory as
well as a custom named TOML configuration file.
Creates a ` Clog ` struct using a specific git working directory and project directory as well as a custom named TOML configuration file .
git_dir
P
work_tree
P
cfg_file
P
example
None
use clog::clog;
let clog = Clog::with_all("/myproject/.git",
"/myproject",
"/myproject/clog_conf.toml").unwrap_or_else(|e| {
e.exit();
});
```
let clog = Clog :: with_all ( " / myproject / . git " " / myproject " " / myproject / clog_conf . toml " ) . unwrap_or_else ( |e| { e . exit () ; } ) ; ` ` `