mirror of https://github.com/jdx/mise
fix: mise watch forward --exts and --filter to watchexec (#4826)
mise watch not forward --exts and --filter args to watchexec --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
9ad2c17ec7
commit
f6db50a810
|
@ -156,6 +156,18 @@ impl Watch {
|
||||||
args.push(path.to_string_lossy().to_string());
|
args.push(path.to_string_lossy().to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !self.watchexec.filter_extensions.is_empty() {
|
||||||
|
for ext in &self.watchexec.filter_extensions {
|
||||||
|
args.push("--exts".to_string());
|
||||||
|
args.push(ext.to_string());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !self.watchexec.filter_patterns.is_empty() {
|
||||||
|
for pattern in &self.watchexec.filter_patterns {
|
||||||
|
args.push("--filter".to_string());
|
||||||
|
args.push(pattern.to_string());
|
||||||
|
}
|
||||||
|
}
|
||||||
if let Some(watch_file) = &self.watchexec.watch_file {
|
if let Some(watch_file) = &self.watchexec.watch_file {
|
||||||
args.push("--watch-file".to_string());
|
args.push("--watch-file".to_string());
|
||||||
args.push(watch_file.to_string_lossy().to_string());
|
args.push(watch_file.to_string_lossy().to_string());
|
||||||
|
|
Loading…
Reference in New Issue