Skip to content

Releases: yarrow/zet

[1.0.0] - 2023-04-18

18 Apr 16:32
Compare
Choose a tag to compare

Release Notes

Added

  • Add the --count-lines flag to show the number of times each line occurs in the input and the --count-files flag to show the number of files each line occurs in. The --count flag acts like --count-lines unless --count-files is active, in which case it acts like --count-files. The --count-none flag turns off counting, and can be used to override the other count flags. (In the usual POSIX convention, the last count flag given will override any previous count flag.)

Changed

  • Breaking: When - is used as a file argument, zet reads from standard input, not the file - in the current directory. (That file can be passed to zet as ./-)
  • When no file arguments are given, zet reads from standard input.
  • Breaking: Add the --files (alias --file) flag for the zet single and zet multiple commands. The zet single command now outputs lines that occur exactly once in the entire input. The zet single --file command reproduces the old behavior (output lines that occur in just one file, though possibly many times in that one file). Similarly, zet multiple --files reproduces the old behavior of requiring output lines to occur in more than one file, while zet multiple without the --files flag will output lines that occur more than once, even if in just one file.
  • Use clap 4's help format, but clap 3's colors. This is self-indulgent recreation of (part of) clap's help feature, because I like the clap 4's help format, but really miss the colored (rather than gray-scale) help.

Install zet 1.0.0

Install prebuilt binaries via shell script

# WARNING: this installer is experimental
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/yarrow/zet/releases/download/v1.0.0/zet-v1.0.0-installer.sh | sh

Install prebuilt binaries via powershell script

# WARNING: this installer is experimental
irm https://github.com/yarrow/zet/releases/download/v1.0.0/zet-v1.0.0-installer.ps1 | iex

Download zet 1.0.0

target kind download
aarch64-apple-darwin tarball zet-v1.0.0-aarch64-apple-darwin.tar.xz
x86_64-apple-darwin tarball zet-v1.0.0-x86_64-apple-darwin.tar.xz
x86_64-pc-windows-msvc tarball zet-v1.0.0-x86_64-pc-windows-msvc.zip
x86_64-unknown-linux-gnu tarball zet-v1.0.0-x86_64-unknown-linux-gnu.tar.xz

[1.0.0-prerelease.2 ] — under development

11 Apr 23:58
Compare
Choose a tag to compare

Release Notes

Added

  • Add the --count-lines flag to show the number of times each line occurs in the input and the --count-files flag to show the number of files each line occurs in. The --count flag acts like --count-lines unless --count-files is active, in which case it acts like --count-files. The --count-none turns off counting, and can be used to override the other count flags. (In the usual POSIX convention, the last count flag given will override any previous count flag.)

Changed

  • Breaking: When - is used as a file argument, zet reads from standard input, not the file - in the current directory. (That file can be passed to zet as ./-)
  • When no file arguments are given, zet reads from standard input.
  • Breaking: Add the --files (alias --file) flag for the zet single and zet multiple commands. The zet single command now outputs lines that occur exactly once in the entire input. The zet single --file command reproduces the old behavior (output lines that occur in just one file, though possibly many times in that one file). Similarly, zet multiple --files reproduces the old behavior of requiring output lines to occur in more than one file, while zet multiple without the --files flag will output lines that occur more than once, even if in just one file.
  • Use clap 4's help format, but clap 3's colors. This is self-indulgent recreation of (part of) clap's help feature, because I like the clap 4's help format, but really miss the colored (rather than gray-scale) help.

Install zet 1.0.0-prerelease.2

Install prebuilt binaries via shell script

# WARNING: this installer is experimental
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/yarrow/zet/releases/download/v1.0.0-prerelease.2/zet-v1.0.0-prerelease.2-installer.sh | sh

Install prebuilt binaries via powershell script

# WARNING: this installer is experimental
irm https://github.com/yarrow/zet/releases/download/v1.0.0-prerelease.2/zet-v1.0.0-prerelease.2-installer.ps1 | iex

Download zet 1.0.0-prerelease.2

target kind download
aarch64-apple-darwin tarball zet-v1.0.0-prerelease.2-aarch64-apple-darwin.tar.xz
x86_64-apple-darwin tarball zet-v1.0.0-prerelease.2-x86_64-apple-darwin.tar.xz
x86_64-pc-windows-msvc tarball zet-v1.0.0-prerelease.2-x86_64-pc-windows-msvc.zip
x86_64-unknown-linux-gnu tarball zet-v1.0.0-prerelease.2-x86_64-unknown-linux-gnu.tar.xz

[0.2.6] - 2023-02-02

02 Feb 20:28
Compare
Choose a tag to compare

Download

target kind download
x86_64-unknown-linux-gnu tarball zet-v0.2.6-x86_64-unknown-linux-gnu.tar.xz
x86_64-apple-darwin tarball zet-v0.2.6-x86_64-apple-darwin.tar.xz
x86_64-pc-windows-msvc tarball zet-v0.2.6-x86_64-pc-windows-msvc.zip
x86_64-pc-windows-msvc symbols zet-v0.2.6-x86_64-pc-windows-msvc.pdb

Release Notes

  • Abandon trying to have a Minimum Supported Rust Version (maybe once we're 1.0?)
  • Use cargo-dist to create the release
  • Move for_byte_lines from NextOperand to a trait (thanks to [ysthakur] for the suggestion)

[0.2.5] - 2022-11-10

02 Feb 19:55
Compare
Choose a tag to compare

Download

target kind download
x86_64-unknown-linux-gnu tarball zet-v0.2.5-x86_64-unknown-linux-gnu.tar.xz
x86_64-apple-darwin tarball zet-v0.2.5-x86_64-apple-darwin.tar.xz
x86_64-pc-windows-msvc tarball zet-v0.2.5-x86_64-pc-windows-msvc.zip
x86_64-pc-windows-msvc symbols zet-v0.2.5-x86_64-pc-windows-msvc.pdb

Release Notes

0.2.5

10 Nov 20:56
Compare
Choose a tag to compare
Update release.yml to track BurntSushi/ripgrep's

0.2.0

04 Jul 17:20
Compare
Choose a tag to compare

Add support for UTF-16 files, and make sure lines that differ only in their terminator (\n vs \r\n) are considered equal.

  • Zet looks for Byte Order Marks in UTF-8, UTF-16LE and UTF-16BE files, translating UTF-16LE and UTF-16BE to UTF-8. It outputs a (UTF-8) Byte Order Mark if and only if it finds one in its first file argument.
  • Zet strips off the line terminator (\n or \r\n) from each input line. On output, it uses the line terminator found in the first line of its first file argument (or \n if the first file consists of a single line with no terminator).

v0.1.1

15 Jun 03:14
Compare
Choose a tag to compare

Updated Cargo.toml and some dependencies in Cargo.lock. (I was depending on yanked versions of two crates.)

v0.1.0

14 Jun 22:43
Compare
Choose a tag to compare

Initial release