changelog-cli icon indicating copy to clipboard operation
changelog-cli copied to clipboard

Use iterators instead of pulling the whole CHANGELOG into memory

Open movermeyer opened this issue 4 years ago • 1 comments

Ref: https://github.com/mc706/changelog-cli/pull/21#discussion_r563222258

movermeyer avatar Jan 24 '21 03:01 movermeyer

Started down this path on the JSON export piece. Creating a new "get_changes" util that returns a stream of the file lines instead of the whole file, that way i can use map and filter efficiently to get only the lines i need for export. This will also help on being able to just fetch the file and getting things like "give me the first changeset" using next().

mc706 avatar Jan 30 '21 16:01 mc706