pf

Crates.iopf
lib.rspf
version0.4.0
sourcesrc
created_at2018-12-19 09:09:49.52979
updated_at2021-02-19 06:04:22.924289
descriptiontransfer file command line tool
homepagehttps://github.com/robatipoor/pf
repositoryhttps://github.com/robatipoor/pf
max_upload_size
id102682
size60,611
Mahdi (robatipoor)

documentation

README

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);
}
Commit count: 57

cargo fmt