tmpshare 1.0.1

A tool to share files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate tmpshare;

use std::env::args;

pub fn main() {
    let hash = match args().nth(1) {
        Some(hash) => hash,
        None => {
            println!("usage: get <hash>");
            std::process::exit(1);
        }
    };

    let meta = tmpshare::storage::get_metadata(&hash).unwrap();
    println!("{:?}", meta)
}