Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loading options from configuration file #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ Pre-compiled binaries are available in the [latest release page](https://github.
--secret string your Infura ProjectSecret
--url string the API URL (default "https://ipfs.infura.io:5001")
```

### Load options from configuration file

Create `.infura-ipfs-upload-client` file in your home directory.

```
ID=<YOUR INFURA PROJECT ID>
PIN=<WHETHER OR NOT TO PIN THE DATA OR NOT. (true / false)>
SECRET=<YOUR INFURA PROJECT SECRET>
URL=<THE API URL>
```
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ require (
github.com/ipfs/go-ipfs-http-client v0.1.0
github.com/ipfs/interface-go-ipfs-core v0.5.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.10.1
)
Loading