Skip to content

Commit

Permalink
fix: prepare new release (#601)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
morgante and github-actions[bot] authored Jan 7, 2025
1 parent 0d0319f commit 0de0cdb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
8 changes: 4 additions & 4 deletions 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
Expand Up @@ -23,7 +23,7 @@ exclude = [
]

[workspace.package]
version = "0.5.0"
version = "0.5.1"
authors = ["Iuvo AI, Inc.", "Grit Contributors"]
description = "GritQL is a query language for searching, linting, and modifying code."
repository = "https://github.com/getgrit/gritql/"
Expand Down
22 changes: 13 additions & 9 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ pub(crate) mod lsp;

pub(crate) mod check;

pub(crate) mod blueprints;
pub(crate) mod parse;
pub(crate) mod patterns;
pub(crate) mod patterns_list;
pub(crate) mod patterns_test;
pub(crate) mod plumbing;
pub(crate) mod version;

#[cfg(feature = "workflows_v2")]
pub(crate) mod blueprints;

#[cfg(feature = "workflows_v2")]
pub(crate) mod apply_migration;
#[cfg(feature = "workflows_v2")]
Expand All @@ -37,7 +39,6 @@ pub(crate) mod workflows_watch;

use crate::error::GoodError;

use blueprints::{BlueprintCommands, Blueprints};
#[cfg(feature = "grit_tracing")]
use marzano_util::base64;
#[cfg(feature = "grit_tracing")]
Expand Down Expand Up @@ -145,8 +146,9 @@ pub enum Commands {
/// Print diagnostic information about the current environment
Doctor(DoctorArgs),
/// Manage blueprints for the Grit Agent
#[cfg(feature = "workflows_v2")]
#[clap(aliases = ["blueprint", "bp"])]
Blueprints(Blueprints),
Blueprints(blueprints::Blueprints),
/// Authentication commands, run `grit auth --help` for more information
#[clap(name = "auth")]
Auth(Auth),
Expand Down Expand Up @@ -201,10 +203,11 @@ impl fmt::Display for Commands {
PatternCommands::Edit(_) => write!(f, "patterns edit"),
PatternCommands::Describe(_) => write!(f, "patterns describe"),
},
#[cfg(feature = "workflows_v2")]
Commands::Blueprints(arg) => match arg.blueprint_commands {
BlueprintCommands::List(_) => write!(f, "blueprints list"),
BlueprintCommands::Pull(_) => write!(f, "blueprints pull"),
BlueprintCommands::Push(_) => write!(f, "blueprints push"),
blueprints::BlueprintCommands::List(_) => write!(f, "blueprints list"),
blueprints::BlueprintCommands::Pull(_) => write!(f, "blueprints pull"),
blueprints::BlueprintCommands::Push(_) => write!(f, "blueprints push"),
},
#[cfg(feature = "workflows_v2")]
Commands::Workflows(arg) => match arg.workflows_commands {
Expand Down Expand Up @@ -437,10 +440,11 @@ async fn run_command(_use_tracing: bool) -> Result<()> {
PatternCommands::Edit(arg) => run_patterns_edit(arg).await,
PatternCommands::Describe(arg) => run_patterns_describe(arg).await,
},
#[cfg(feature = "workflows_v2")]
Commands::Blueprints(arg) => match arg.blueprint_commands {
BlueprintCommands::List(arg) => arg.run(&app.format_flags).await,
BlueprintCommands::Pull(arg) => arg.run(&app.format_flags).await,
BlueprintCommands::Push(arg) => arg.run(&app.format_flags).await,
blueprints::BlueprintCommands::List(arg) => arg.run(&app.format_flags).await,
blueprints::BlueprintCommands::Pull(arg) => arg.run(&app.format_flags).await,
blueprints::BlueprintCommands::Push(arg) => arg.run(&app.format_flags).await,
},
#[cfg(feature = "workflows_v2")]
Commands::Workflows(arg) => match arg.workflows_commands {
Expand Down
6 changes: 6 additions & 0 deletions crates/grit-pattern-matcher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.1](https://github.com/getgrit/gritql/compare/grit-pattern-matcher-v0.5.0...grit-pattern-matcher-v0.5.1) - 2025-01-07

### Other

- use `&Path` in `FileRegistry::new_from_paths()` (#594)

## [0.5.0](https://github.com/getgrit/gritql/compare/grit-pattern-matcher-v0.4.0...grit-pattern-matcher-v0.5.0) - 2024-10-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/grit-pattern-matcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust.unused_crate_dependencies = "warn"
[dependencies]
elsa = { version = "1.9.0" }
getrandom = { version = "0.2.11", optional = true }
grit-util = { path = "../grit-util", version = "0.5.0" }
grit-util = { path = "../grit-util", version = "0.5.1" }
itertools = { version = "0.10.5" }
rand = { version = "0.8.5" }
regex = { version = "1.7.3" }

0 comments on commit 0de0cdb

Please sign in to comment.