Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Update version to 0.21.0 (#106)
Browse files Browse the repository at this point in the history
* Update AppVeyor badge

* Remove outdated unit tests

* Update version
Fix cli interface doc
  • Loading branch information
r8d8 authored Apr 3, 2018
1 parent 4ab2fa2 commit 15573d6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "emerald-cli"
version = "0.20.0"
version = "0.21.0"
authors = ["Constantine Kryvomaz <[email protected]>"]
description = "Console utility for secure account management"
homepage = "http://etcdevteam.com"
Expand Down
8 changes: 5 additions & 3 deletions cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ subcommands:
about: Start local RPC server
args:
- host:
help: Senders address
help: Host for RPC server
takes_value: true
default_value: "127.0.0.1"
- port:
help: Receiver address
help: Port for RPC server
takes_value: true
default_value: "1920"
- mnemonic:
about: Create mnemonic phrase according to BIP39 spec
- balance:
about: Request account's balance from ethereum node through RPC
args:
- address:
help: account address
help: Account address
required: true
takes_value: true
- transaction:
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ fn server_cmd(
chain: &str,
) -> ExecResult {
info!("Starting Emerald Connector - v{}", emerald::version());
let host = matches.value_of("host").unwrap_or(DEFAULT_RPC_HOST);
let port = matches.value_of("host").unwrap_or(DEFAULT_RPC_PORT);
let host = matches.value_of("host").unwrap_or_default();
let port = matches.value_of("port").unwrap_or_default();
let addr = format!("{}:{}", host, port).parse::<SocketAddr>()?;
let sec_lvl = get_security_lvl(matches)?;

Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ fn main() {
let yaml = load_yaml!("../cli.yml");
let matches = App::from_yaml(yaml).get_matches();

match matches.occurrences_of("v") {
0 => env::set_var("RUST_LOG", "emerald=error"),
1 => env::set_var("RUST_LOG", "emerald=info"),
2 | _ => env::set_var("RUST_LOG", "emerald=trace"),
match matches.occurrences_of("verbose") {
0 => env::set_var("RUST_LOG", "error"),
1 => env::set_var("RUST_LOG", "info"),
2 | _ => env::set_var("RUST_LOG", "debug"),
}

let mut log_builder = LogBuilder::new();
Expand Down

0 comments on commit 15573d6

Please sign in to comment.