fork of https://github.com/rustwasm/wasm-pack for the needs of NextGraph.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
822 B
37 lines
822 B
extern crate console;
|
|
#[macro_use]
|
|
extern crate failure;
|
|
extern crate indicatif;
|
|
#[macro_use]
|
|
extern crate lazy_static;
|
|
extern crate quicli;
|
|
#[macro_use]
|
|
extern crate serde_derive;
|
|
extern crate serde_json;
|
|
extern crate toml;
|
|
|
|
pub mod bindgen;
|
|
pub mod build;
|
|
pub mod command;
|
|
pub mod emoji;
|
|
pub mod manifest;
|
|
pub mod npm;
|
|
pub mod progressbar;
|
|
pub mod readme;
|
|
|
|
use progressbar::ProgressOutput;
|
|
use quicli::prelude::*;
|
|
|
|
lazy_static! {
|
|
pub static ref PBAR: ProgressOutput = { ProgressOutput::new() };
|
|
}
|
|
|
|
/// 📦 ✨ pack and publish your wasm!
|
|
#[derive(Debug, StructOpt)]
|
|
pub struct Cli {
|
|
#[structopt(subcommand)] // Note that we mark a field as a subcommand
|
|
pub cmd: command::Command,
|
|
/// log all the things
|
|
#[structopt(long = "verbose", short = "v", parse(from_occurrences))]
|
|
pub verbosity: u8,
|
|
}
|
|
|