- 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
- Paths passed to
add_line_to_file()
andremove_lines_from_file()
can now bebytes
oros.PathLike[bytes]
- Support Click 8
- Gave the
add_line_to_file()
andremove_lines_from_file()
functionsencoding
anderrors
arguments - Inserter instances can now be safely reused across multiple calls to
add_line_to_string()
/add_line_to_file()
- The
add
command now expands backslash escapes inline
. - Gave
add
an-L/--line
option for specifying theline
, especially when it begins with a hyphen. - Gave
remove
an-e/--regexp
option for specifying theregexp
, especially when it begins with a hyphen.
Initial release