1.0.13 • Published 7 years ago

trc.cli v1.0.13

Weekly downloads
15
License
ISC
Repository
github
Last release
7 years ago

trc.cli

Command line interface for TRC. This is a command line wrapper that calls the TRC REST apis via https://github.com/Voter-Science/TrcLibNpm

Quick install

You can install trc.cli by cloning this repo, doing an npm install to pull down depedencies, npm run build to build it, and then go.

trc.cli is published to NPM. You can download it via npm install and then immediately run it with node.

npm install --g trc.cli
trc ...arguments...

To access TRC, you'll need to pass your secret 'canvass code' for login. This is the same login that is used on the webpage and mobile apps.

In the examples below, 'xxx' is the secret canvas code for accessing a sheet.

Get info

Prints basic information about a sheet to the console. This is quick and prints basic version information.

node index.js xxxxx info

Get latest sheet contents

Downloads the latest sheet contents to a CSV file. This is the full contents

trc xxxxx getall %filename%
trc xxxxx getall contents.csv

Get minimized sheet contents

Downloads the latest sheet contents to a CSV file. This just pulls the subset that was actually modified.

trc xxxxx getmin %filename%
trc xxxxx getmin contents.csv

Get full history

Downloads the full change history for this sheet to a csv file. This just includes the specific submits that users made and not the actual sheet contents.

trc xxxxx changelog  %filename%
trc xxxxx changelog history.json
1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago