refactor: use JSON file exchange instead of stdout parsing #234
Reference in New Issue
Block a user
Delete Branch "fix/issue-119"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replace fragile Python stdout parsing with structured JSON file exchange.
Depends On
Changes
New helper functions in kugetsu-index.sh
read_json_file()- Read JSON file contentswrite_json_file()- Write JSON with validationget_json_value()- Get value by key from JSON fileset_json_value()- Set value by key in JSON fileRefactored functions
kugetsu-session.sh
create_session()echo | python | greppattern to parse session IDs via pipeskugetsu-worktree.sh
check_pr_status()curl | echo | pythonwith stdout pipingAcceptance Criteria
Backport Compatible
Internal improvement only, same behavior externally.
Closes #119
lgtm