|
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
use PBAR; |
|
|
|
|
use bindgen; |
|
|
|
|
use build; |
|
|
|
|
use console::style; |
|
|
|
@ -6,9 +7,8 @@ use failure::Error; |
|
|
|
|
use indicatif::HumanDuration; |
|
|
|
|
use manifest; |
|
|
|
|
use npm; |
|
|
|
|
use readme; |
|
|
|
|
use PBAR; |
|
|
|
|
use quicli::prelude::*; |
|
|
|
|
use readme; |
|
|
|
|
use std::fs; |
|
|
|
|
use std::result; |
|
|
|
|
use std::time::Instant; |
|
|
|
@ -73,7 +73,7 @@ pub fn init_command(path: Option<String>, scope: Option<String>) -> result::Resu |
|
|
|
|
Ok(()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn pack_command(path: Option<String>) -> result::Result<(),Error> { |
|
|
|
|
pub fn pack_command(path: Option<String>) -> result::Result<(), Error> { |
|
|
|
|
let crate_path = set_crate_path(path); |
|
|
|
|
|
|
|
|
|
npm::npm_pack(&crate_path); |
|
|
|
@ -96,5 +96,4 @@ fn set_crate_path(path: Option<String>) -> String { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
crate_path |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|