Skip to content

Commit

Permalink
feat: watch mode for patterns test (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu999 committed Jul 8, 2024
1 parent a455498 commit 8f3f077
Show file tree
Hide file tree
Showing 17 changed files with 668 additions and 50 deletions.
94 changes: 94 additions & 0 deletions Cargo.lock

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

14 changes: 6 additions & 8 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ flate2 = { version = "1.0.17", features = [
"rust_backend",
], default-features = false }
axoupdater = { version = "0.6.4", default-features = false, features = [
"github_releases"
"github_releases",
] }

opentelemetry-otlp = { version = "0.14.0", optional = true, features = [
Expand All @@ -73,6 +73,8 @@ opentelemetry_sdk = { version = "0.21.1", optional = true, features = [
tracing-opentelemetry = { version = "0.22.0", optional = true, default-features = false }

tracing = { version = "0.1.40", default-features = false, features = [] }
notify = "6.1.1"
notify-debouncer-mini = "0.4.1"
tracing-subscriber = { version = "0.3", default-features = false, optional = true }

fs-err = { version = "2.11.0" }
Expand Down Expand Up @@ -106,12 +108,8 @@ workflows_v2 = []
bundled_workflows = []
remote_redis = []
remote_pubsub = []
remote_workflows = [
"dep:grit_cloud_client",
]
workflow_server = [
"dep:grit_cloud_client",
]
remote_workflows = ["dep:grit_cloud_client"]
workflow_server = ["dep:grit_cloud_client"]
server = [
"workflows_v2",
"external_functions",
Expand Down Expand Up @@ -150,7 +148,7 @@ grit_beta = [
"ai_builtins",
"workflows_v2",
"remote_workflows",
"workflow_server"
"workflow_server",
# "grit_timing",
]
grit_timing = []
5 changes: 4 additions & 1 deletion crates/cli/src/commands/patterns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum PatternCommands {
Describe(PatternsDescribeArgs),
}

#[derive(Args, Debug, Serialize)]
#[derive(Args, Debug, Serialize, Clone)]
pub struct PatternsTestArgs {
/// Regex of a specific pattern to test
#[clap(long = "filter")]
Expand All @@ -53,6 +53,9 @@ pub struct PatternsTestArgs {
/// Update expected test outputs
#[clap(long = "update")]
pub update: bool,
/// Enable watch mode on .grit dir
#[clap(long = "watch")]
pub watch: bool,
}

#[derive(Args, Debug, Serialize)]
Expand Down
Loading

0 comments on commit 8f3f077

Please sign in to comment.