openuado / niet

Parse/Read yaml or json files directly in your shell (sh, bash, ksh, ...)
https://pypi.org/project/niet/
MIT License
39 stars 7 forks source link

[feat] add the comma output format #65

Closed 4383 closed 4 years ago

4383 commented 4 years ago

These changes add the comma output format where results are represented on one single line and separated by commas.

Also these changes:

How to test:

Setup your env:

$ git add remote hberaud git@github.com:4383/niet
$ git fetch hberaud
$ git checkout -b comma hberaud/comma

Now run tests:

$ # Example of display
$ tox -e venv -- niet "oslo.deliverables.*.repos[0]"
    https://raw.githubusercontent.com/openstack/governance/master/reference/projects.yaml
    -f comma
$ # Example of integration with beagle and the openstack governance data
$ python3 -m venv .venv
$ source bin/activate
$ pip install beagle
$ beagle search -f link --repo $(niet
   "oslo.deliverables.*.repos[0]"
   https://raw.githubusercontent.com/openstack/governance/master/reference/projects.yaml
   -f comma) 'venv'