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.
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 likeResponseData
. Then theUIService
can render thatResponseData
as either natural language or JSON output depending on whether or not--json
is set.