0.0.1 • Published 10 years ago

orcup v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

Orcup Build Status

Upload files to Orchestrate.

Install

npm install -g orcup

If that fails, try this:

sudo npm install -g orcup

Usage

N.B.: Currently only works with JSON files. CSV, SQL, and Mongo dump files coming soon~

orcup -a YOUR_API_KEY -c COLLECTION [file]

This will read the contents of file, and upload them as items into the given collection. For example, a file with these contents...

[
    {"text":"*chases an invisible something*"},
    {"text":"*rubs against furniture*"},
    {"text":"*rubs against your laptop*"},
    {"text":"*rubs against your cup, knocking it off the table*"},
    {"text":"*knocks your pen away from you; glares at you*"},
    {"text":"*sits on your laptop*"},
    {"text":"*blinks, slowly*"},
    {"text":"meow"},
    {"text":"mrow"},
    {"text":"*sits on the roomba as it roves about, surveying the kingdom*"},
    {"text":"https://www.youtube.com/watch?v=tLt5rBfNucc"},
    {"text":"https://www.youtube.com/watch?v=Of2HU3LGdbo"},
    {"text":"*flicks tail angrily*"},
    {"text":"*purrs loudly, interrupting conversation*"},
    {"text":"http://eggchair.maxthayer.org/img/JykzFai.gif"},
    {"text":"https://www.youtube.com/watch?v=0M7ibPk37_U"},
    {"text":"*sits, adorably*"},
    {"text":"*chases the red dot*"},
    {"text":"http://www.businesscat.happyjar.com/"}
]

... will be interpreted as an array of items. Orcup will insert each item into Orchestrate, and report any errors or quit on success.

License

ISC, yo.