Skip to content

Conversation

@gifflet
Copy link
Owner

@gifflet gifflet commented Jul 22, 2025

This PR updates the core.Install() function to return the final installed command name, in addition to any error:

  • Helps simplify CLI usage, especially for displaying helpful hints (e.g., how to run /command)
  • Unifies command name resolution across install/update/sync flows
  • Updates all internal callers to use the new (string, error) signature, including:
    • CLI command
    • update.go
    • sync.go
    • install_behavior_test.go

- Refactors Install() to return the installed command name along with error
- Simplifies command name resolution in CLI by reusing internal logic
- Updates all Install() callers (sync, update, tests) to use new return signature
@sonarqubecloud
Copy link

@gifflet gifflet merged commit 4cc022f into main Jul 22, 2025
7 checks passed
@gifflet gifflet deleted the refactor/install-return-command-name branch July 22, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants