nameless 0.15.2

Portable everything-is-a-URL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! A simple program using `kommand` that copies from an
//! `InputByteStream` into an `OutputByteStream`.

use nameless::{InputByteStream, OutputByteStream};
use std::io::copy;

/// # Arguments
///
/// * `input` - Input source
/// * `output` - Output sink
#[kommand::main]
fn main(mut input: InputByteStream, mut output: OutputByteStream) -> anyhow::Result<()> {
    copy(&mut input, &mut output)?;

    Ok(())
}