From 705928d48816bbda57558b9767c1e5d60f608760 Mon Sep 17 00:00:00 2001 From: blacknon Date: Wed, 4 Jan 2023 15:39:24 +0900 Subject: [PATCH 1/3] create v0.3.9 branch --- Cargo.lock | 2 +- Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 67be36c..bcdc662 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -655,7 +655,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hwatch" -version = "0.3.8" +version = "0.3.9" dependencies = [ "ansi-parser", "async-std", diff --git a/Cargo.toml b/Cargo.toml index a1dc4c6..6c35e59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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されたのでいい加減アップデートされてもいいと思うのだが…. @@ -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" From 4a8080d5dc2ed1e3280d6dca5df3be3c528f5b98 Mon Sep 17 00:00:00 2001 From: blacknon Date: Wed, 4 Jan 2023 19:01:56 +0900 Subject: [PATCH 2/3] update. debug... The environment variable was HWATCH_JSON, so I changed it to HWATCH_DATA. --- src/exec.rs | 2 +- src/main.rs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/exec.rs b/src/exec.rs index dd197dc..f8fbdaf 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -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(); } diff --git a/src/main.rs b/src/main.rs index 002600d..526c199 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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が行えるようにする. From fc63d062020d94381a8d1355d878d3297f26e537 Mon Sep 17 00:00:00 2001 From: blacknon Date: Wed, 4 Jan 2023 19:02:17 +0900 Subject: [PATCH 3/3] update. debug... The environment variable was HWATCH_JSON, so I changed it to HWATCH_DATA. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d6597fb..7e4bb5e 100644 --- a/README.md +++ b/README.md @@ -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 A modern alternative to the watch command, records the differences in execution results and can check this differences at after.