/cpedidos-catmat-catser-converter

Conversor do CATMAT/CATSER de CSV para JSON para uso no Controle de Pedidos da Prefeitura Municipal de Penápolis.

Primary LanguageDart

CPedidos PMP - CATMAT/CATSER Converter

Conversor do CATMAT/CATSER de CSV para JSON para uso no Controle de Pedidos da Prefeitura Municipal de Penápolis.


style: Flutterando analysis

Table of Contents
  1. About Application
  2. CLI Commands
  3. Script
  4. Assets

About Application


This CLI Application is used to convert catmat.csv and catser.csv files, into *.json (used for debug purposes) and *.min.json (used by CPedidos-PMP application).

(back to top)

CLI Commands


This CLI Application have two commands, they are:

  • catmat: used to convert catmat.csv into catmat.json and catmat.min.json.
  • catser: used to convert catser.csv into catser.json and catser.min.json.

Both commands have same args, they are:

  • --input [path] (-i): this specifies the *.csv input path. This arg is obrigatory.
  • --output [path] (-o): this specifies the *.json or *.min.json output path. This arg is obrigatory.
  • --minify (-m): this specifies it outbut will be minified or not. This arg is not obrigatory and by default is false.

(back to top)

Scripts


  • In the folder 'bin' we have a script called 'build.ps1' that build this CLI Application;
  • We have a script called 'convert.ps1' also, that convert catmat.csv and catser.csv files inside '/assets/input' into *.json (used for debug purposes) and *.min.json (used by application). The output files (*.json and *.min.json) will be generated in '/assets/output'.

(back to top)

Assets


(back to top)

Maintaned by


Built and maintained by ph-developer.