Skip to content

2 ‐ Use the CLI

Pierre-Yves Lapersonne edited this page Nov 22, 2024 · 2 revisions

It is quite simple to use the tool in CLI (Command Line Interface).

GIF video of CLI tool which make assets updates, metrics computations and provides data

Prerequisites

When you have filled your spreasheets, you should export them in CSV files (supporting UT8). They should have the same names and positions in the file trees, see the constants of the main Shell script.

Update the internal files

Once you have yout CSV files updated, run the update command:

bash tipsntools.sh --update

It will generated HTML chunks for the web page, and JSON files for the Ruby servlet. A metadata file is used also to compute only the files if the sources have been modified.

Make some queries

If you want to look in your files for some data, use the following command:

bash tipsntools.sh {--findAll | --findWeb | --findDevices | --findTools | --findSocs} yourRegex [--json]

It will make searches in one of the four corpora of data (or in all), according to a regular expression, and export in JSON or CSV format in standard output.

Other features

Feel free to run the help command to as to get the available features (compute metrics, compute checksums, ...).

bash tipsntools.sh --help
Clone this wiki locally