Release Notes
Breaking changes
Now, HawkEye uses MiniJinja as the template engine.
All the properties
configured will be passed to the template engine as the props
value, and thus:
- Previous
${property}
should be replaced with{{ props["property"] }}
. - Previous built-in variables
hawkeye.core.filename
is nowattrs.filename
. - Previous built-in variables
hawkeye.git.fileCreatedYear
is nowattrs.git_file_created_year
. - Previous built-in variables
hawkeye.git.fileModifiedYear
is nowattrs.git_file_modified_year
.
New properties:
attrs.git_authors
is a collection of authors of the file. You can join them with,
to get a string by{{ attrs.git_authors | join(", ") }}
.
Notable changes
Now, HawkEye would detect a leading BOM (Byte Order Mark) and remove it if it exists (#166). I tend to treat this as a bug fix, but it may affect the output of the header.
Install hawkeye 6.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v6.0.0/hawkeye-installer.sh | sh
Download hawkeye 6.0.0
File | Platform | Checksum |
---|---|---|
hawkeye-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
hawkeye-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
hawkeye-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
hawkeye-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |