rorybyrne / git-plan

Git Plan - a better workflow for git
MIT License
181 stars 5 forks source link

feat: git plan should be able to output data in JSON to make it easier to integrate with other tools #86

Open rorybyrne opened 3 years ago

rorybyrne commented 3 years ago

Current Situation

Output from git plan is in natural language.

Enhancement

Add --json flags to relevant commands so that output can be produced in machine-readable format.

Reasoning

This would make it easier for other tools to integrate with git plan. For example, Magit.

Implementation

Maybe the interface of the UIService could be changed to only accept some type like ResponseData. Then the UIService can render that ResponseData as either natural language or JSON output depending on whether or not --json is set.