omabeam 0.1.0

Beam text, links, or one file to a phone with a QR code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Implements the input precedence and transfer flow behind the CLI.

mod file;
mod input;
mod qr;

use std::path::PathBuf;

pub(super) fn run(file: Option<PathBuf>) -> Result<(), String> {
    match file {
        Some(path) => file::serve(&path),
        None => qr::print(&input::read_text()?),
    }
}