Discussion:
Bug#908117: RFP: yq -- yq is a lightweight and portable command-line YAML processor The aim of the project is to be the jq or sed of yaml files.
Add Reply
Varac
2018-09-06 10:40:01 UTC
Reply
Permalink
Package: wnpp
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

* Package name : yq
Version : 2.1.2
Upstream Author : Mike Farah <***@gmail.com>
* URL : http://mikefarah.github.io/yq/
* License : MIT License
Programming Lang: Go
Description : yq is a lightweight and portable command-line YAML processor The aim of the project is to be the jq or sed of yaml files.

Features

- - Deep read a yaml file with a given path
- - Update a yaml file given a path
- - Update a yaml file given a script file
- - Update creates any missing entries in the path on the fly
- - Create a yaml file given a deep path and value
- - Create a yaml file given a script file
- - Convert from json to yaml
- - Convert from yaml to json
- - Pipe data in by using '-'
- - Merge multiple yaml files where each additional file sets values for missing or null value keys.
- - Merge multiple yaml files and override previous values.
- - Merge multiple yaml files and append array values.
- - Supports multiple documents in a single yaml file
ChangZhuo Chen (陳昌倬)
2018-09-06 15:00:01 UTC
Reply
Permalink
Control: retitle -1 ITP: yq -- lightweight and portable command-line YAML processor


I can help to maintain it under go-team.
Post by Varac
Package: wnpp
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
* Package name : yq
Version : 2.1.2
* URL : http://mikefarah.github.io/yq/
* License : MIT License
Programming Lang: Go
Description : yq is a lightweight and portable command-line YAML processor The aim of the project is to be the jq or sed of yaml files.
Features
- - Deep read a yaml file with a given path
- - Update a yaml file given a path
- - Update a yaml file given a script file
- - Update creates any missing entries in the path on the fly
- - Create a yaml file given a deep path and value
- - Create a yaml file given a script file
- - Convert from json to yaml
- - Convert from yaml to json
- - Pipe data in by using '-'
- - Merge multiple yaml files where each additional file sets values for missing or null value keys.
- - Merge multiple yaml files and override previous values.
- - Merge multiple yaml files and append array values.
- - Supports multiple documents in a single yaml file
--
ChangZhuo Chen (陳昌倬) czchen@{czchen,debconf,debian}.org
http://czchen.info/
Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B
Antoine Beaupré
2018-10-26 19:00:03 UTC
Reply
Permalink
Post by Varac
Package: wnpp
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
* Package name : yq
Version : 2.1.2
* URL : http://mikefarah.github.io/yq/
* License : MIT License
Programming Lang: Go
Description : yq is a lightweight and portable command-line YAML processor The aim of the project is to be the jq or sed of yaml files.
Just for the record, there's also a Python implementation, also called
yq, which also handles XML:

https://yq.readthedocs.io/en/latest/

I think it's slightly more interesting because it does more than just
YAML.. But maybe the python one should be called "xq" (or "xyq"?)
instead. ;)

In any case, someone should probably let those upstreams know about the
naming conflict.

A.
--
Be who you are and say what you feel
Because those who mind don't matter
And those who matter don't mind.
- Dr. Seuss
Antoine Beaupré
2018-10-26 19:10:02 UTC
Reply
Permalink
Post by Antoine Beaupré
In any case, someone should probably let those upstreams know about the
naming conflict.
Done:

https://github.com/kislyuk/yq/issues/41
https://github.com/mikefarah/yq/issues/189

we'll see how that flies.

That said, how is packaging going? :)

A.
Varac
2019-10-09 09:30:01 UTC
Reply
Permalink
Quoting Antoine Beaupré (2018-10-26 20:59:04)
Post by Antoine Beaupré
Post by Antoine Beaupré
In any case, someone should probably let those upstreams know about the
naming conflict.
https://github.com/kislyuk/yq/issues/41
https://github.com/mikefarah/yq/issues/189
we'll see how that flies.
It didn't even take off - both authors seem to be unwilling to rename their
projects. I guess debian just needs to decide which name to pick.
The python implementation "was started before the other project was renamed to yq".

Anyhow, I'm fine with whatever name and whatever project.
@ChangZhuo: What's the state about packaging ?

greetings, varac

Loading...