Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jq / output-as json to get info from yunohost commands instead of scraping with grep #1160

Merged
merged 1 commit into from Feb 25, 2021

Conversation

alexAubin
Copy link
Member

The problem

Idk while debugging stuff on ci-apps-unstable, realized we have many helpers relying on dirty scraping with grep

Solution

Use jq for robustness ... that's not trivial but at least json is a better interface between programs and less prone to stupid edge case like grepping stuff you weren't expecting ...

PR Status

Tested and working on my side

How to test

Zblerg idk i just ran commands manually

@alexAubin alexAubin added this to In progress in 4.2.x via automation Feb 25, 2021
@alexAubin alexAubin merged commit 53576a4 into dev Feb 25, 2021
4.2.x automation moved this from In progress to Done Feb 25, 2021
@alexAubin alexAubin deleted the use-jq-in-helpers branch February 25, 2021 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
4.2.x
  
PR merged
1 participant