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
#![deny(missing_docs)]
extern crate console;
#[macro_use]
extern crate failure;
extern crate indicatif;
#[macro_use]
extern crate lazy_static;
extern crate parking_lot;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
#[macro_use]
extern crate structopt;
#[macro_use]
extern crate slog;
extern crate slog_async;
extern crate slog_term;
extern crate toml;
pub mod bindgen;
pub mod build;
pub mod command;
pub mod emoji;
pub mod error;
pub mod logger;
pub mod manifest;
pub mod npm;
pub mod progressbar;
pub mod readme;
use progressbar::ProgressOutput;
lazy_static! {
pub static ref PBAR: ProgressOutput = { ProgressOutput::new() };
}
#[derive(Debug, StructOpt)]
pub struct Cli {
#[structopt(subcommand)]
pub cmd: command::Command,
#[structopt(long = "verbose", short = "v", parse(from_occurrences))]
pub verbosity: u8,
}