From ddaf4b6a863eb3507803b2a74012e5855ca3cdad Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Tue, 17 Dec 2019 14:50:36 +0000 Subject: [PATCH] commands: using Nym banner on client start --- src/commands/run.rs | 3 +++ src/commands/websocket.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/commands/run.rs b/src/commands/run.rs index e6eec43bdd..fa9d16728b 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -1,3 +1,4 @@ +use crate::banner; use crate::clients::NymClient; use crate::identity::mixnet; use crate::persistence::pathfinder::Pathfinder; @@ -5,6 +6,8 @@ use crate::persistence::pemstore::PemStore; use clap::ArgMatches; pub fn execute(matches: &ArgMatches) { + println!("{}", banner()); + let is_local = matches.is_present("local"); let id = matches.value_of("id").unwrap().to_string(); diff --git a/src/commands/websocket.rs b/src/commands/websocket.rs index 7d9889019c..dcf80afc06 100644 --- a/src/commands/websocket.rs +++ b/src/commands/websocket.rs @@ -4,6 +4,8 @@ use clap::ArgMatches; use std::net::ToSocketAddrs; pub fn execute(matches: &ArgMatches) { + println!("{}", banner()); + let port = match matches.value_of("port").unwrap().parse::() { Ok(n) => n, Err(err) => panic!("Invalid port value provided - {:?}", err),