# Build
You need rustc and cargo (default tooling for Rust). Folow [the instructions](https://www.rust-lang.org/en-US/install.html).

If you have [Nix](http://nixos.org/nix/) installed, you can get all dependencies using `nix-shell`.

After dependencies are installed, execute the following command.
```sh
cargo build
```

# Run
Use the next command to run Zink.
```sh
cargo run
```

# Build
You need rustc and cargo (default tooling for Rust). Folow [the instructions](https://www.rust-lang.org/en-US/install.html).

If you have [Nix](http://nixos.org/nix/) installed, you can get all dependencies using `nix-shell`.

After dependencies are installed, execute the following command.
```sh
cargo build
```

# Run
Use the next command to run Zink.
```sh
cargo run -- [-f/--file <file to append results to>] jsonpaths
```

If file is not specified, result is appended to stdout.

## Example
Imagine device sending the following data to the Zink:
```json
{"temp": 16, "bat": 28}
```

You can extract it into CSV using the following call.
```sh
cargo run -- bat,temp
```

The result is next.
```
28,16
```

Add CSV data collector description
Add CSV data collector description
