Skip to content

Releases: jwodder/lineinfile

v0.4.1 — Packaging updates

01 Dec 12:50
v0.4.1
Compare
Choose a tag to compare
  • Support Python 3.10, 3.11, 3.12, and 3.13
  • Drop support for Python 3.6 and 3.7
  • The CLI now always opens files in UTF-8
  • Add type annotations to tests
  • Migrated from setuptools to hatch

v0.4.0 — Bytes paths and Click 8

12 May 14:47
v0.4.0
Compare
Choose a tag to compare
  • Paths passed to add_line_to_file() and remove_lines_from_file() can now be bytes or os.PathLike[bytes]
  • Support Click 8

v0.3.0 — Encodings and reusable inserters

27 Dec 19:56
v0.3.0
Compare
Choose a tag to compare
  • Gave the add_line_to_file() and remove_lines_from_file() functions encoding and errors arguments
  • Inserter instances can now be safely reused across multiple calls to add_line_to_string()/add_line_to_file()

v0.2.0 — Unescaping `line`; options for hyphen-initial arguments

21 Dec 15:05
v0.2.0
Compare
Choose a tag to compare
  • The add command now expands backslash escapes in line.
  • Gave add an -L/--line option for specifying the line, especially when it begins with a hyphen.
  • Gave remove an -e/--regexp option for specifying the regexp, especially when it begins with a hyphen.

v0.1.0 — Initial release

17 Dec 00:51
v0.1.0
Compare
Choose a tag to compare