Little tool to generate a JSON file using OpenBSD sqlports as source.
 
Go to file
Juan Francisco Cantero Hurtado 6f0451de18 Update repo url. 2020-11-22 00:38:20 +01:00
README.md Update repo url. 2020-11-22 00:38:20 +01:00
ports-json.py Indent the entries. 2019-08-10 23:57:40 +02:00

README.md

Ports JSON generator

$ doas pkg_add python%3 sqlports
$ git clone https://codeberg.org/juanfra684/ports-json.git
$ cd ports-json
$ ./ports-json.py -h
usage: ports-json.py [-h] [-l | -o OUTPUT] database

positional arguments:
  database              sqlports database file

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list columns, useful to detect new entries in the DB
  -o OUTPUT, --output OUTPUT
                        json file where the results will be written
$ ./ports-json.py -o packages.json /usr/local/share/sqlports