restructure cli

This commit is contained in:
Vinzenz Schroeter 2025-03-02 14:09:04 +01:00
parent 0ac6b77ed0
commit 11d9ac0bcb
6 changed files with 100 additions and 88 deletions

7
src/text.rs Normal file
View 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), }
}