Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add JSON output option to the "config home" subcommand #5946
Changelog: Feature: Add
As the issue referred to making command output more future-proof it can be written to file in JSON format (with the actual path contained in the
Tests have been extended to make sure that the expected output is contained in the JSON file created.
Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.
lasote left a comment •
It is better if we provide a dict with a key. Otherwise, we will be very limited if we want to expand this json in the future. It happens all the time. For example, what if tomorrow someone wants json output for
Sure, I'll just revert to the first version I had before @monsdar's comment. :) Not sure that's reusable enough for a future
You'll probably want to squash this to keep the history clean.