Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed Nov 18, 2021
1 parent c09d46c commit 2e397e3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0]
### Added
- Added binary file detection. When a binary file is detected, `hline` will refuse to highlight it, unless passed the `-b` flag.

### Fixed
- Fixed inconsistent error output
- Fixed a panic when non-utf-8 data was encountered

## [0.1.1]
### Fixed
- Fix bug where broken pipes would color the shell. For instance, if the last line in some output patched, running
`hline <pat> myfile.txt |head` would color your terminal red. Oops!
- Made error message output a bit more human-friendly.

### Changed
- Change highlight color to light red

## [0.1.0] - 2021-11-07
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hline"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
description = "a grep-like tool that highlights lines in files"
license = "Apache-2.0"
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# hline

`hline` is a very small command line utility designed to highlight lines in log files. In practice, I've found that tuning the context that `grep` gives me when `tail -f`ing a log can be quite cumbersome. Oftentimes, all I really care about is seeing that a certain message happened and some surrounding context. `hline` fills that niche!
`hline` is a very small command line utility designed to highlight lines in log files. In practice, I've found that
tuning the context that `grep` gives me when `tail -f`ing a log can be quite cumbersome. Oftentimes, all I really
care about is seeing that a certain message happened and some surrounding context. `hline` fills that niche!

## Usage

```
hline 0.1.1
hline 0.2.0
Highlights lines that match the given regular expression
USAGE:
Expand All @@ -14,6 +16,7 @@ USAGE:
FLAGS:
-i, --ignore-case Ignore case when performing matching. If not specified, the matching is case-sensitive.
-h, --help Prints help information
-b Treat the given input file as text, even if it may be a binary file
ARGS:
<pattern> The regular expression to search for. Note that this is not anchored, and if anchoring is desired,
Expand Down

0 comments on commit 2e397e3

Please sign in to comment.