Skip to content

fix(CLI): ensure consistent spacing before the greeting message#1407

Merged
Timeless0911 merged 1 commit intomainfrom
spacing
Dec 24, 2025
Merged

fix(CLI): ensure consistent spacing before the greeting message#1407
Timeless0911 merged 1 commit intomainfrom
spacing

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

Summary

Ensure consistent spacing before the greeting message.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 24, 2025 09:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the CLI greeting message spacing logic by extracting it into a dedicated showGreeting() function. The changes aim to ensure consistent spacing before the greeting message across different package managers (npm, npx, bun, and node run commands).

Key Changes

  • Extracted greeting logic into a new showGreeting() function for better code organization
  • Updated the detection mechanism for package managers to include node run scripts
  • Replaced conditional blank line insertion with a newline prefix approach

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Timeless0911 Timeless0911 merged commit 4c90579 into main Dec 24, 2025
23 checks passed
@Timeless0911 Timeless0911 deleted the spacing branch December 24, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants