Skip to content

Commit

Permalink
Merge pull request #85 from blacknon/0.3.9
Browse files Browse the repository at this point in the history
Version 0.3.9

- debug. The environment variable was `HWATCH_JSON`, so I changed it to `HWATCH_DATA`.
  • Loading branch information
blacknon authored Jan 4, 2023
2 parents d10acc5 + fc63d06 commit 52e280b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
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.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["watch", "command", "monitoring"]
license-file = "LICENSE"
name = "hwatch"
repository = "https://github.com/blacknon/hwatch"
version = "0.3.8"
version = "0.3.9"

[dependencies]
# TODO: [ansi-parser](https://crates.io/crates/ansi-parser)のバージョンアップ対応が必要になるので、その対応待ち. PRはmargeされたのでいい加減アップデートされてもいいと思うのだが….
Expand All @@ -17,7 +17,7 @@ chrono = "0.4.19"
clap = {version = "3.1.18", features = ["cargo"]}
crossbeam-channel = "0.5.4"
crossterm = "0.22"
ctrlc = { version = "3.0", features = ["termination"] }
ctrlc = {version = "3.0", features = ["termination"]}
difference = "2.0"
futures = "0.3.21"
question = "0.2.2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ That records the result of command execution and can display it history and diff

## Usage

hwatch 0.3.8
hwatch 0.3.9
blacknon <[email protected]>
A modern alternative to the watch command, records the differences in execution results and can
check this differences at after.
Expand Down
2 changes: 1 addition & 1 deletion src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn exec_after_command(shell_command: String, after_command: String, before_r

let _ = Command::new(&exec_commands[0])
.args(&exec_commands[1..length])
.env("HWATCH_JSON", json_data)
.env("HWATCH_DATA", json_data)
.spawn();
}

Expand Down
9 changes: 1 addition & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.

// v0.3.8
// TODO(blacknon): 出力結果が変わった場合やコマンドの実行に失敗・成功した場合に、オプションで指定したコマンドをキックする機能を追加.
// - その際、環境変数をキックするコマンドに渡して実行結果や差分をキック先コマンドで扱えるようにする。
// - また、実行時にはシェルも指定して呼び出せるようにする?

// v0.3.9
// TODO(blacknon): コマンド実行結果のみを表示するオプション(keybind)の追加(なんかもうコードあるっぽい??).
// - https://github.com/blacknon/hwatch/issues/63
// v0.3.10
// TODO(blacknon): セキュリティのため、heaplessのバージョンを上げる
// TODO(blakcnon): batch modeの実装.
// TODO(blacknon): 任意時点間のdiffが行えるようにする.
Expand Down

0 comments on commit 52e280b

Please sign in to comment.