Skip to content

Refactor Install to Return Command Name After Installation - #17

Merged
gifflet merged 1 commit into
mainfrom
refactor/install-return-command-name
Jul 22, 2025
Merged

Refactor Install to Return Command Name After Installation#17
gifflet merged 1 commit into
mainfrom
refactor/install-return-command-name

Conversation

@gifflet

@gifflet gifflet commented Jul 22, 2025

Copy link
Copy Markdown
Owner

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
Copy Markdown

@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.

1 participant