Skip to content

fix: skip bootstrap for specific commands#398

Merged
Swiftwork merged 2 commits intomainfrom
fix/skip-bootstrap-specific-commands
Apr 11, 2025
Merged

fix: skip bootstrap for specific commands#398
Swiftwork merged 2 commits intomainfrom
fix/skip-bootstrap-specific-commands

Conversation

@Swiftwork
Copy link
Contributor

This pull request introduces several changes to the CLI package to improve command handling and versioning. The key updates include adding a utility function for command names, skipping bootstrap for specific commands, and updating the package version.

Command handling improvements:

  • packages/cli/index.ts: Added commandName import and defined skipBootstrapCommands to skip bootstrapping for certain commands. Updated preAction hook to check command names and conditionally skip bootstrapping. [1] [2] [3] [4]
  • packages/cli/utils/commander.ts: Added a new utility function commandName to construct full command names for nested commands.

Version update:

@Swiftwork Swiftwork added the enhancement New feature or request label Apr 10, 2025
@Swiftwork Swiftwork requested a review from Copilot April 10, 2025 13:31
@Swiftwork Swiftwork self-assigned this Apr 10, 2025
Copy link
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.

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • packages/cli/package.json: Language not supported
Comments suppressed due to low confidence (1)

packages/cli/utils/commander.ts:3

  • [nitpick] Consider explicitly specifying the return type (e.g., ': string') for the function to improve code clarity.
export function commandName(command: Command) {

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Swiftwork Swiftwork added this pull request to the merge queue Apr 11, 2025
Merged via the queue into main with commit 9a21bf6 Apr 11, 2025
5 checks passed
@Swiftwork Swiftwork deleted the fix/skip-bootstrap-specific-commands branch April 11, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants