Skip to content

Commit 26fc243

Browse files
chore: apply prettier formatting to remaining source files
• Format long lines in config defaults for better readability • Apply consistent formatting to index entry points • Improve code style consistency across codebase
1 parent f7fcc5d commit 26fc243

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

src/index-dev.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ async function main(): Promise<void> {
2727
error.message.includes("too many arguments")
2828
) {
2929
console.error("\n✗ Error: Too many arguments");
30-
console.error("\n Your message or body contains spaces and needs to be quoted.");
30+
console.error(
31+
"\n Your message or body contains spaces and needs to be quoted.",
32+
);
3133
console.error("\n Fix: Use quotes around values with spaces:");
3234
console.error(` • Message: -m "your message here"`);
3335
console.error(` • Body: -b "your body here"`);
@@ -43,4 +45,3 @@ async function main(): Promise<void> {
4345

4446
// Execute CLI
4547
main();
46-

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ async function main(): Promise<void> {
3030
error.message.includes("too many arguments")
3131
) {
3232
console.error("\n✗ Error: Too many arguments");
33-
console.error("\n Your message or body contains spaces and needs to be quoted.");
33+
console.error(
34+
"\n Your message or body contains spaces and needs to be quoted.",
35+
);
3436
console.error("\n Fix: Use quotes around values with spaces:");
3537
console.error(` • Message: -m "your message here"`);
3638
console.error(` • Body: -b "your body here"`);

src/lib/config/defaults.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,17 @@ export function mergeWithDefaults(rawConfig: RawConfig): LabcommitrConfig {
182182
// Handle nested shortcuts configuration
183183
if (rawConfig.advanced.shortcuts) {
184184
merged.advanced.shortcuts = {
185-
enabled: rawConfig.advanced.shortcuts.enabled ?? merged.advanced.shortcuts?.enabled ?? true,
186-
display_hints: rawConfig.advanced.shortcuts.display_hints ?? merged.advanced.shortcuts?.display_hints ?? true,
187-
prompts: rawConfig.advanced.shortcuts.prompts ?? merged.advanced.shortcuts?.prompts,
185+
enabled:
186+
rawConfig.advanced.shortcuts.enabled ??
187+
merged.advanced.shortcuts?.enabled ??
188+
true,
189+
display_hints:
190+
rawConfig.advanced.shortcuts.display_hints ??
191+
merged.advanced.shortcuts?.display_hints ??
192+
true,
193+
prompts:
194+
rawConfig.advanced.shortcuts.prompts ??
195+
merged.advanced.shortcuts?.prompts,
188196
};
189197
}
190198
}

0 commit comments

Comments
 (0)