Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/rename cli to pglt #197

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 125 additions & 125 deletions Cargo.lock

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,37 @@ tree_sitter_sql = { path = "./lib/tree_sitter_sql", version = "0.0.0" }
unicode-width = "0.1.12"

# postgres specific crates
pg_analyse = { path = "./crates/pg_analyse", version = "0.0.0" }
pg_analyser = { path = "./crates/pg_analyser", version = "0.0.0" }
pg_base_db = { path = "./crates/pg_base_db", version = "0.0.0" }
pg_cli = { path = "./crates/pg_cli", version = "0.0.0" }
pg_commands = { path = "./crates/pg_commands", version = "0.0.0" }
pg_completions = { path = "./crates/pg_completions", version = "0.0.0" }
pg_configuration = { path = "./crates/pg_configuration", version = "0.0.0" }
pg_console = { path = "./crates/pg_console", version = "0.0.0" }
pg_diagnostics = { path = "./crates/pg_diagnostics", version = "0.0.0" }
pg_diagnostics_categories = { path = "./crates/pg_diagnostics_categories", version = "0.0.0" }
pg_diagnostics_macros = { path = "./crates/pg_diagnostics_macros", version = "0.0.0" }
pg_flags = { path = "./crates/pg_flags", version = "0.0.0" }
pg_fs = { path = "./crates/pg_fs", version = "0.0.0" }
pg_lexer = { path = "./crates/pg_lexer", version = "0.0.0" }
pg_lexer_codegen = { path = "./crates/pg_lexer_codegen", version = "0.0.0" }
pg_lint = { path = "./crates/pg_lint", version = "0.0.0" }
pg_lsp = { path = "./crates/pg_lsp", version = "0.0.0" }
pg_lsp_converters = { path = "./crates/pg_lsp_converters", version = "0.0.0" }
pg_markup = { path = "./crates/pg_markup", version = "0.0.0" }
pg_query_ext = { path = "./crates/pg_query_ext", version = "0.0.0" }
pg_query_ext_codegen = { path = "./crates/pg_query_ext_codegen", version = "0.0.0" }
pg_query_proto_parser = { path = "./crates/pg_query_proto_parser", version = "0.0.0" }
pg_schema_cache = { path = "./crates/pg_schema_cache", version = "0.0.0" }
pg_statement_splitter = { path = "./crates/pg_statement_splitter", version = "0.0.0" }
pg_text_edit = { path = "./crates/pg_text_edit", version = "0.0.0" }
pg_treesitter_queries = { path = "./crates/pg_treesitter_queries", version = "0.0.0" }
pg_type_resolver = { path = "./crates/pg_type_resolver", version = "0.0.0" }
pg_typecheck = { path = "./crates/pg_typecheck", version = "0.0.0" }
pg_workspace = { path = "./crates/pg_workspace", version = "0.0.0" }
pglt_analyse = { path = "./crates/pglt_analyse", version = "0.0.0" }
pglt_analyser = { path = "./crates/pglt_analyser", version = "0.0.0" }
pglt_base_db = { path = "./crates/pglt_base_db", version = "0.0.0" }
pglt_cli = { path = "./crates/pglt_cli", version = "0.0.0" }
pglt_commands = { path = "./crates/pglt_commands", version = "0.0.0" }
pglt_completions = { path = "./crates/pglt_completions", version = "0.0.0" }
pglt_configuration = { path = "./crates/pglt_configuration", version = "0.0.0" }
pglt_console = { path = "./crates/pglt_console", version = "0.0.0" }
pglt_diagnostics = { path = "./crates/pglt_diagnostics", version = "0.0.0" }
pglt_diagnostics_categories = { path = "./crates/pglt_diagnostics_categories", version = "0.0.0" }
pglt_diagnostics_macros = { path = "./crates/pglt_diagnostics_macros", version = "0.0.0" }
pglt_flags = { path = "./crates/pglt_flags", version = "0.0.0" }
pglt_fs = { path = "./crates/pglt_fs", version = "0.0.0" }
pglt_lexer = { path = "./crates/pglt_lexer", version = "0.0.0" }
pglt_lexer_codegen = { path = "./crates/pglt_lexer_codegen", version = "0.0.0" }
pglt_lint = { path = "./crates/pglt_lint", version = "0.0.0" }
pglt_lsp = { path = "./crates/pglt_lsp", version = "0.0.0" }
pglt_lsp_converters = { path = "./crates/pglt_lsp_converters", version = "0.0.0" }
pglt_markup = { path = "./crates/pglt_markup", version = "0.0.0" }
pglt_query_ext = { path = "./crates/pglt_query_ext", version = "0.0.0" }
pglt_query_ext_codegen = { path = "./crates/pglt_query_ext_codegen", version = "0.0.0" }
pglt_query_proto_parser = { path = "./crates/pglt_query_proto_parser", version = "0.0.0" }
pglt_schema_cache = { path = "./crates/pglt_schema_cache", version = "0.0.0" }
pglt_statement_splitter = { path = "./crates/pglt_statement_splitter", version = "0.0.0" }
pglt_text_edit = { path = "./crates/pglt_text_edit", version = "0.0.0" }
pglt_treesitter_queries = { path = "./crates/pglt_treesitter_queries", version = "0.0.0" }
pglt_type_resolver = { path = "./crates/pglt_type_resolver", version = "0.0.0" }
pglt_typecheck = { path = "./crates/pglt_typecheck", version = "0.0.0" }
pglt_workspace = { path = "./crates/pglt_workspace", version = "0.0.0" }

pg_test_utils = { path = "./crates/pg_test_utils" }
pglt_test_utils = { path = "./crates/pglt_test_utils" }
# parser = { path = "./crates/parser", version = "0.0.0" }
# sql_parser = { path = "./crates/sql_parser", version = "0.0.0" }
# sql_parser_codegen = { path = "./crates/sql_parser_codegen", version = "0.0.0" }
Expand Down
4 changes: 0 additions & 4 deletions crates/pg_analyser/src/lint.rs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions crates/pg_diagnostics/Cargo.toml

This file was deleted.

33 changes: 0 additions & 33 deletions crates/pg_fs/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions crates/pg_lexer/src/codegen.rs

This file was deleted.

10 changes: 0 additions & 10 deletions crates/pg_markup/README.md

This file was deleted.

1 change: 0 additions & 1 deletion crates/pg_query_ext/src/codegen.rs

This file was deleted.

29 changes: 0 additions & 29 deletions crates/pg_schema_cache/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions crates/pg_type_resolver/src/util.rs

This file was deleted.

32 changes: 0 additions & 32 deletions crates/pg_typecheck/Cargo.toml

This file was deleted.

12 changes: 6 additions & 6 deletions crates/pg_analyse/Cargo.toml → crates/pglt_analyse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "pg_analyse"
name = "pglt_analyse"
repository.workspace = true
version = "0.0.0"


[dependencies]
pg_console.workspace = true
pg_diagnostics.workspace = true
pg_query_ext.workspace = true
pg_schema_cache.workspace = true
rustc-hash = { workspace = true }
pglt_console.workspace = true
pglt_diagnostics.workspace = true
pglt_query_ext.workspace = true
pglt_schema_cache.workspace = true
rustc-hash = { workspace = true }

biome_deserialize = { workspace = true, optional = true }
biome_deserialize_macros = { workspace = true, optional = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl ActionCategory {
///
/// ```
/// use std::borrow::Cow;
/// use pg_analyse::{ActionCategory, RefactorKind};
/// use pglt_analyse::{ActionCategory, RefactorKind};
///
/// assert!(ActionCategory::QuickFix(Cow::from("quickfix")).matches("quickfix"));
///
Expand Down Expand Up @@ -301,7 +301,7 @@ impl schemars::JsonSchema for RuleCategories {
/// A convenient type create a [RuleCategories] type
///
/// ```
/// use pg_analyse::{RuleCategoriesBuilder, RuleCategory};
/// use pglt_analyse::{RuleCategoriesBuilder, RuleCategory};
/// let mut categories = RuleCategoriesBuilder::default().with_lint().build();
///
/// assert!(categories.contains(RuleCategory::Lint));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
};

pub struct RuleContext<'a, R: Rule> {
stmt: &'a pg_query_ext::NodeEnum,
stmt: &'a pglt_query_ext::NodeEnum,
options: &'a R::Options,
}

Expand All @@ -13,7 +13,7 @@ where
R: Rule + Sized + 'static,
{
#[allow(clippy::too_many_arguments)]
pub fn new(stmt: &'a pg_query_ext::NodeEnum, options: &'a R::Options) -> Self {
pub fn new(stmt: &'a pglt_query_ext::NodeEnum, options: &'a R::Options) -> Self {
Self { stmt, options }
}

Expand All @@ -28,7 +28,7 @@ where
}

/// Returns the AST root
pub fn stmt(&self) -> &pg_query_ext::NodeEnum {
pub fn stmt(&self) -> &pglt_query_ext::NodeEnum {
self.stmt
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ impl Display for RuleFilter<'_> {
}
}

impl pg_console::fmt::Display for RuleFilter<'_> {
fn fmt(&self, fmt: &mut pg_console::fmt::Formatter) -> std::io::Result<()> {
impl pglt_console::fmt::Display for RuleFilter<'_> {
fn fmt(&self, fmt: &mut pglt_console::fmt::Formatter) -> std::io::Result<()> {
match self {
RuleFilter::Group(group) => {
write!(fmt, "{group}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod registry;
mod rule;

// Re-exported for use in the `declare_group` macro
pub use pg_diagnostics::category_concat;
pub use pglt_diagnostics::category_concat;

pub use crate::categories::{
ActionCategory, RefactorKind, RuleCategories, RuleCategoriesBuilder, RuleCategory,
Expand Down
Loading
Loading