Skip to content

Commit 7cda2b3

Browse files
authoredFeb 12, 2025
chore: rename cli to pglt (#201)
* chore: rename cli to pglt * chore: rename config file
1 parent 0a6a0b2 commit 7cda2b3

File tree

47 files changed

+256
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+256
-265
lines changed
 

‎crates/pglt_analyse/src/categories.rs

+12-16
Original file line numberDiff line numberDiff line change
@@ -74,38 +74,34 @@ impl ActionCategory {
7474
match self {
7575
ActionCategory::QuickFix(tag) => {
7676
if tag.is_empty() {
77-
Cow::Borrowed("quickfix.pglsp")
77+
Cow::Borrowed("quickfix.pglt")
7878
} else {
79-
Cow::Owned(format!("quickfix.pglsp.{tag}"))
79+
Cow::Owned(format!("quickfix.pglt.{tag}"))
8080
}
8181
}
8282

83-
ActionCategory::Refactor(RefactorKind::None) => Cow::Borrowed("refactor.pglsp"),
83+
ActionCategory::Refactor(RefactorKind::None) => Cow::Borrowed("refactor.pglt"),
8484
ActionCategory::Refactor(RefactorKind::Extract) => {
85-
Cow::Borrowed("refactor.extract.pglsp")
86-
}
87-
ActionCategory::Refactor(RefactorKind::Inline) => {
88-
Cow::Borrowed("refactor.inline.pglsp")
85+
Cow::Borrowed("refactor.extract.pglt")
8986
}
87+
ActionCategory::Refactor(RefactorKind::Inline) => Cow::Borrowed("refactor.inline.pglt"),
9088
ActionCategory::Refactor(RefactorKind::Rewrite) => {
91-
Cow::Borrowed("refactor.rewrite.pglsp")
89+
Cow::Borrowed("refactor.rewrite.pglt")
9290
}
9391
ActionCategory::Refactor(RefactorKind::Other(tag)) => {
94-
Cow::Owned(format!("refactor.{tag}.pglsp"))
92+
Cow::Owned(format!("refactor.{tag}.pglt"))
9593
}
9694

97-
ActionCategory::Source(SourceActionKind::None) => Cow::Borrowed("source.pglsp"),
98-
ActionCategory::Source(SourceActionKind::FixAll) => {
99-
Cow::Borrowed("source.fixAll.pglsp")
100-
}
95+
ActionCategory::Source(SourceActionKind::None) => Cow::Borrowed("source.pglt"),
96+
ActionCategory::Source(SourceActionKind::FixAll) => Cow::Borrowed("source.fixAll.pglt"),
10197
ActionCategory::Source(SourceActionKind::OrganizeImports) => {
102-
Cow::Borrowed("source.organizeImports.pglsp")
98+
Cow::Borrowed("source.organizeImports.pglt")
10399
}
104100
ActionCategory::Source(SourceActionKind::Other(tag)) => {
105-
Cow::Owned(format!("source.{tag}.pglsp"))
101+
Cow::Owned(format!("source.{tag}.pglt"))
106102
}
107103

108-
ActionCategory::Other(tag) => Cow::Owned(format!("{tag}.pglsp")),
104+
ActionCategory::Other(tag) => Cow::Owned(format!("{tag}.pglt")),
109105
}
110106
}
111107
}

‎crates/pglt_analyse/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl AnalyserRules {
4545
/// A set of information useful to the analyser infrastructure
4646
#[derive(Debug, Default)]
4747
pub struct AnalyserOptions {
48-
/// A data structured derived from the [`pglsp.toml`] file
48+
/// A data structured derived from the [`pglt.toml`] file
4949
pub rules: AnalyserRules,
5050
}
5151

0 commit comments

Comments
 (0)