Skip to content

feat: introduce unified sync command and grouped syncs#500

Draft
okurz wants to merge 2 commits intoopenSUSE:masterfrom
okurz:feature/037_update_commands
Draft

feat: introduce unified sync command and grouped syncs#500
okurz wants to merge 2 commits intoopenSUSE:masterfrom
okurz:feature/037_update_commands

Conversation

@okurz
Copy link
Copy Markdown
Member

@okurz okurz commented Apr 17, 2026

Motivation:
Each command execution in production has a high container startup overhead.
Combining the most frequent sync operations into a single command reduces this
overhead significantly.

Design Choices:

  • Introduced a new "sync" command that runs both SMELT and Gitea syncs.
  • Moved individual "smelt-sync" and "gitea-sync" commands into the "advanced"
    sub-command group.
  • Added hidden, deprecated top-level aliases for "smelt-sync" and "gitea-sync"
    to maintain backward compatibility.
  • Unified sync accepts all Gitea-related options.

Benefits:

  • Reduced production runtime by approximately 30 seconds per execution.
  • Improved CLI organization while maintaining compatibility with existing
    automation pipelines.

okurz added 2 commits April 20, 2026 10:48
Motivation:
The CLI was getting cluttered with commands mostly used for testing or advanced
debugging.

Design Choices:
Used Typer sub-apps to group "repo-diff" and "sub-comment" under an "advanced"
sub-command.

Benefits:
Cleaner main CLI interface while keeping necessary debugging tools available.
Motivation:
Each command execution in production has a high container startup overhead.
Combining the most frequent sync operations into a single command reduces this
overhead significantly.

Design Choices:
- Introduced a new "sync" command that runs both SMELT and Gitea syncs.
- Moved individual "smelt-sync" and "gitea-sync" commands into the "advanced"
  sub-command group.
- Added hidden, deprecated top-level aliases for "smelt-sync" and "gitea-sync"
  to maintain backward compatibility.
- Unified sync accepts all Gitea-related options.

Benefits:
- Reduced production runtime by approximately 30 seconds per execution.
- Improved CLI organization while maintaining compatibility with existing
  automation pipelines.
@okurz okurz force-pushed the feature/037_update_commands branch from c21effa to 0ec9025 Compare April 20, 2026 08:50
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