Add --in-place flag for editing files directly#6
Conversation
Adds -i/--in-place flag that reads the file, applies the mutation, and writes the result back to the same file. This is useful for scripting workflows where you want to update frontmatter in place. - Updated extract() to accept allow_empty parameter for init support - Updated fmq() to accept init parameter - Added CLI integration test that verifies file is modified correctly
Pull Request Review: Add --in-place flag for editing files directlySummaryThis PR adds the Code Quality & Best Practices ✅Strengths:
API Design:
Potential Issues & Suggestions1. Data Loss Risk - No Backup
|
Adds -i/--in-place flag that reads the file, applies the mutation, and writes the result back to the same file. This is useful for scripting workflows where you want to update frontmatter in place.