sjcobb2022 / incyan-technical

Technical test for interview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InCyan Technical Task

Installation Instructions

To install the project. You must first clone the repository.

git clone https://github.com/sjcobb2022/incyan-technical

You will need cargo installed on you machine to run this.

To run the project simply run the bash command

cargo run -- [OPTIONS]
Options:
  -j, --json <JSON>  JSON string that will be parsed
  -f, --file <FILE>  Input file
  -h, --help         Print help
  -V, --version      Print version

Usage

As a JSON string:

cargo run -- --json='{
      "title": "stock count",
      "xtitle": "asset",
      "ytitle": "count",
      "items": [
          {"chairs": 20},
          {"tables": 5},
          {"stands": 7},
          {"lamps": 8},
          {"cups": 10}
      ]
  }'

With a file:

cargo run -- --file='./path/to/file.json'

About

Technical test for interview


Languages

Language:Rust 100.0%