Skip to content

Commit f91ffdd

Browse files
authored
Merge branch 'master' into add-install-check
2 parents 6ed7750 + 1ffe34d commit f91ffdd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/command.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn create_pkg_dir(path: &str) -> result::Result<(), Error> {
4646
Ok(())
4747
}
4848

49-
pub fn init_command(path: Option<String>, scope: Option<String>) -> result::Result<(), Error> {
49+
pub fn init(path: Option<String>, scope: Option<String>) -> result::Result<(), Error> {
5050
let started = Instant::now();
5151

5252
let crate_path = set_crate_path(path);
@@ -73,15 +73,15 @@ pub fn init_command(path: Option<String>, scope: Option<String>) -> result::Resu
7373
Ok(())
7474
}
7575

76-
pub fn pack_command(path: Option<String>) -> result::Result<(), Error> {
76+
pub fn pack(path: Option<String>) -> result::Result<(), Error> {
7777
let crate_path = set_crate_path(path);
7878

7979
npm::npm_pack(&crate_path);
8080
println!("🎒 packed up your package!");
8181
Ok(())
8282
}
8383

84-
pub fn publish_command(path: Option<String>) -> result::Result<(), Error> {
84+
pub fn publish(path: Option<String>) -> result::Result<(), Error> {
8585
let crate_path = set_crate_path(path);
8686

8787
npm::npm_publish(&crate_path);

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ extern crate indicatif;
55
extern crate quicli;
66

77
use quicli::prelude::*;
8-
use wasm_pack::command::{init_command, pack_command, publish_command, Command};
8+
use wasm_pack::command::{init, pack, publish, Command};
99
use wasm_pack::Cli;
1010

1111
main!(|args: Cli, log_level: verbosity| match args.cmd {
1212
Command::Init { path, scope } => {
13-
init_command(path, scope)?;
13+
init(path, scope)?;
1414
}
1515
Command::Pack { path } => {
16-
pack_command(path)?;
16+
pack(path)?;
1717
}
1818
Command::Publish { path } => {
19-
publish_command(path)?;
19+
publish(path)?;
2020
}
2121
});

0 commit comments

Comments
 (0)