1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#![warn(missing_docs)]

//! This is the rust doc for the `lal` *library* - what the `lal` *binary*
//! depends on to do all the work. This documentation is likely only of use to you
//! if you need to know the internals of `lal` for figuring out how to modify it.
//!
//! ## Testing
//! The library contains all the logic because the binary is only an argument parser,
//! and elaborate decision making engine to log, call one of the libraries functions,
//! then simply `process::exit`.
//! Tests do not cover the binary part, because these failures would be trivially
//! detectable, and also require a subprocess type of testing. Tests instead
//! cover a couple of common use flows through the library.
//!
//!
//! ## Dependencies
//! This tool depends on the rust ecosystem and their crates. Dependencies referenced
//! explicitly or implicitly is listed on the left of this page.

#[macro_use]
extern crate hyper;
extern crate hyper_native_tls;
extern crate openssl_probe;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate regex;
extern crate tar;
extern crate flate2;
extern crate ansi_term;
extern crate sha1;
#[macro_use]
extern crate log;
extern crate walkdir;
extern crate chrono;
extern crate filetime;
extern crate rand;
extern crate semver;
#[cfg(feature = "progress")]
extern crate indicatif;

// re-exports
mod core;
pub use core::*;

mod storage;
pub use storage::*;

/// Env module for env subcommand (which has further subcommands)
pub mod env;
/// List module for all the list-* subcommands
pub mod list;

// lift most other pub functions into our libraries main scope
// this avoids having to type lal::build::build in tests and main.rs
pub use build::{build, BuildOptions};
pub use configure::configure;
pub use init::init;
pub use shell::{shell, docker_run, script, DockerRunFlags, ShellModes};
pub use fetch::fetch;
pub use update::{update, update_all};
pub use remove::remove;
pub use export::export;
pub use status::status;
pub use verify::verify;
pub use stash::stash;
pub use clean::clean;
pub use query::query;
pub use publish::publish;
pub use propagate::propagate;

mod configure;
mod init;
mod shell;
mod build;
mod query;
mod update;
mod fetch;
mod remove;
mod export;
mod clean;
mod verify;
mod stash;
mod status;
mod publish;
mod propagate;

#[cfg(feature = "upgrade")]
pub use upgrade::upgrade;
#[cfg(feature = "upgrade")]
mod upgrade;