Skip to content

Commit

Permalink
version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Canop committed Aug 30, 2023
1 parent b8d4f28 commit 2e160db
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### next
<a name="v2.0.0"></a>
### v2.0.0 - 2023-08-30
- `--output` parameter lets you choose between summary tables (default) or the log lines, either raw, as CSV, or as JSON
- `--lines` removed (use `--output raw` or `-o r` instead)
- `--lines` parameter removed (use `--output raw` or `-o r` instead)
- more helpful `--help`
- more targets for binaries in the official archives, especially ARM 32/64 both gnu and musl

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 = "rhit"
version = "1.8.0-dev"
version = "2.0.0"
authors = ["dystroy <[email protected]>"]
repository = "https://github.com/Canop/rhit"
description = "nginx log analyzer"
Expand Down
1 change: 1 addition & 0 deletions bacon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ command = [
"-A", "clippy::manual_range_contains",
"-A", "clippy::match_like_matches_macro",
"-A", "clippy::manual_clamp",
"-A", "clippy::if_same_then_else",
]
need_stdout = false

Expand Down
4 changes: 1 addition & 3 deletions src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ use {
termimad::crossterm::tty::IsTty,
};

/// Rhit gives you a report of the hits found in your nginx logs.
///
/// Complete documentation at https://dystroy.org/rhit
/// Program launch argument
#[derive(Debug, Default, Parser)]
#[command(author, about, name = "rhit", disable_version_flag = true, version, disable_help_flag = true)]
pub struct Args {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
};

static INTRO_TEMPLATE: &str = "
**Rhit** analyses your nginx logs.
**Rhit** analyzes your nginx logs.
Complete documentation at *https://dystroy.org/rhit*
Expand Down
2 changes: 1 addition & 1 deletion src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl LineConsumer for JsonPrinter {
) {
if filtered_out { return; }
if self.written > 0 {
print!(",\n");
println!(",");
} else {
println!("[");
}
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#[macro_use] extern crate cli_log;

mod cli;
Expand Down

0 comments on commit 2e160db

Please sign in to comment.