restructure cli
This commit is contained in:
parent
0ac6b77ed0
commit
11d9ac0bcb
6 changed files with 100 additions and 88 deletions
7
src/text.rs
Normal file
7
src/text.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use servicepoint::Connection;
|
||||
use crate::cli::TextCommand;
|
||||
use crate::stream_stdin::stream_stdin;
|
||||
|
||||
pub fn text(connection: &Connection, command: TextCommand) {
|
||||
match command { TextCommand::Stdin { slow } => stream_stdin(connection, slow), }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue