tcp_console/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod client;
pub use client::Client;

mod console;
pub use console::{Console, Error};

mod builder;
pub use builder::Builder;

mod subscription;
pub use subscription::{Subscription, SubscriptionError};

fn ensure_newline(mut input: String) -> String {
    if !input.ends_with('\n') {
        input.push('\n');
    }
    input
}