#paste #file #transfer

bin+lib pf

transfer file command line tool

5 releases

✓ Uses Rust 2018 edition

0.2.2 Sep 9, 2019
0.2.1 Jun 26, 2019
0.2.0 Mar 28, 2019
0.1.1 Dec 30, 2018
0.1.0 Dec 19, 2018

#1 in #transfer

45 downloads per month

MIT license

22KB
413 lines

pf

Crates.io Build Status Build status License: MIT

pf is client tool for file sharing from the command line using the paste.rs service

install

cargo install pf

Build and install

# dependencies git, rustc, cargo, gnu make, binutils, upx
# build and install pf 
git clone https://github.com/robatipoor/pf \
&& cd pf \
&& make 

how to use command

# post string
echo 'Hello !' | pf
# post file
pf some-file.txt
# get file 
pf https://paste.rs/some
# delete file
pf -d https://paste.rs/some
# read log file
pf --log

how to use crate

extern crate pf;

use pf::PastFile;

fn main() {
    let link = PastFile::create("Some Text ...").unwrap();
    println!("{}", link);
}

Dependencies

~18MB
~418K SLoC