Skip to content

chore: rename pglt_cli and binary #243

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

Merged
merged 4 commits into from
Mar 18, 2025
Merged
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
74 changes: 37 additions & 37 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 @@ -54,7 +54,6 @@ unicode-width = "0.1.12"
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" }
Expand All @@ -81,6 +80,7 @@ pglt_treesitter_queries = { path = "./crates/pglt_treesitter_queries", versi
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" }
pgt_cli = { path = "./crates/pgt_cli", version = "0.0.0" }

pglt_test_macros = { path = "./crates/pglt_test_macros" }
pglt_test_utils = { path = "./crates/pglt_test_utils" }
Expand Down
4 changes: 2 additions & 2 deletions crates/pglt_cli/Cargo.toml → crates/pgt_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "pglt_cli"
name = "pgt_cli"
repository.workspace = true
version = "0.0.0"

Expand Down Expand Up @@ -56,5 +56,5 @@ tikv-jemallocator = "0.6.0"
doctest = false

[[bin]]
name = "pglt"
name = "postgrestools"
path = "src/main.rs"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub enum PgltCommand {
///
/// The file doesn't need to exist on disk, what matters is the extension of the file. Based on the extension, we know how to check the code.
///
/// Example: `echo 'let a;' | pglt_cli check --stdin-file-path=test.sql`
/// Example: `echo 'let a;' | pgt_cli check --stdin-file-path=test.sql`
#[bpaf(long("stdin-file-path"), argument("PATH"), hide_usage)]
stdin_file_path: Option<String>,

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions crates/pglt_cli/src/main.rs → crates/pgt_cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! This is the main binary

use pglt_cli::{
CliDiagnostic, CliSession, PgltCommand, open_transport, pglt_command, setup_panic_handler,
to_color_mode,
};
use pglt_console::{ConsoleExt, EnvConsole, markup};
use pglt_diagnostics::{Diagnostic, PrintDiagnostic, set_bottom_frame};
use pglt_workspace::workspace;
use pgt_cli::{
CliDiagnostic, CliSession, PgltCommand, open_transport, pglt_command, setup_panic_handler,
to_color_mode,
};
use std::process::{ExitCode, Termination};
use tokio::runtime::Runtime;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading