瀏覽代碼

Add usage and installation to README

tags/v0.2.1^2^2
Bèr Kessels 3 年之前
父節點
當前提交
3d7594b56a
共有 1 個檔案被更改,包括 21 行新增8 行删除
  1. 21
    8
      README.md

+ 21
- 8
README.md 查看文件

@@ -2,20 +2,33 @@

PlaceBazaar tooling script to download a file and publish it to IPFS.

## Get going.
./wget-to-ipfs.sh
Option -u (--url) requires an argument

TODO: implement Makefile#install
-u --url [arg] URL to download. Required.
-r --root [arg] IPFS id of a directory to add the file to. Leave empty when you don't want to add the file to a directory.
-t --temp [arg] Location of tempfile. Default="/tmp/wget-to-ipfs"
-v Enable verbose mode, print script as it is executed
-d --debug Enables debug mode
-h --help This page
-n --no-color Disable color output

## Run it
Downloads a file from an URL and adds to IPFS.

TODO: implement Makefile#run
## Get going.

## Test it
Install wget and ipfs. Ensure both are runnable.

TODO: implement Makefile#test
Clone this repo:

## Components:
git clone https://git.webschuur.com/placebazaar/wget-to-ipfs.git

### Bash script
Run it:

cd wget-to-ipfs
./wget-to-ipfs.sh --url="http://berk.es/berkes_pub.gpg"

## Libraries used:
### Bash script
Uses [http://bash3boilerplate.sh/](http://bash3boilerplate.sh/).


Loading…
取消
儲存