Refactor version tracking to separate validation and update logic

- Split ValidateAndUpdateVersion into validation-only function
- Add dedicated UpdatePluginCtlVersion function for version updates
- Update updateassets command to use new version update function
- Improve separation of concerns and code maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Felipe M 2025-07-31 12:14:45 +02:00
parent 353cc9efc7
commit 3b412a0a6b
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
2 changed files with 32 additions and 9 deletions

View file

@ -87,6 +87,11 @@ Examples:
Logger.Info("Assets updated successfully!", "files_updated", updatedCount)
// Store the current pluginctl version in the manifest after successful update
if err := UpdatePluginCtlVersion(pluginPath); err != nil {
return fmt.Errorf("failed to save version to manifest: %w", err)
}
return nil
}