0.1.5 • Published 4 years ago

gaiator v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Gaiator

Bulk gaia operations.

Installation

npm install -g gaiator

Usage

gaiator --if /path/to/input/file.json --of /path/to/output/file.json --cc 2

CLI Arguments

Input file template

Currently there are 2 types of operations are supported. putFile and deleteFile.

{
   "privateKey":"app-private-key",
   "tasks":[
      {
         "action":"put",
         "name":"foo.jpg",
         "path":"/Users/talhasch/Desktop/images/foo.jpg",
         "encrypt":false,
         "sign":false,
         "contentType":"image/jpeg"
      },
      {
         "action":"put",
         "name":"bar.txt",
         "path":"/Users/talhasch/Desktop/images/bar.txt",
         "encrypt":true,
         "sign":false,
         "contentType":"text/plain"
      },
      {
         "action":"del",
         "name":"baz.png",
         "wasSigned":false
      }
   ]
}

Output file example

{
   "publicKey": "public-key-from-private-key-given",
   "address": "address-from-public-key",
    result: {
        "foo.jpg":"https://gaia.blockstack.org/hub/1KsEq6grFXXXX7LzoMU9tzSrFUTxaN6di9/foo.jpg",
        "bar.txt":"https://gaia.blockstack.org/hub/1KsEq6grFXXXX7LzoMU9tzSrFUTxaN6di9/bar.txt",
        "baz.png":true
    }
}

if value of a result item is "false", that means operation wasn't successful.

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago