diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-13 17:37:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-13 17:37:16 +0300 |
| commit | fa5ef028ec9a7af801710eed190057d3b3c172f0 (patch) | |
| tree | 41ef41dd1edace0438be20c4f35328c0fbfd8090 /CLAUDE.md | |
| parent | 79225d4df3a181f08a2160ff8ec361001b9dea18 (diff) | |
refactor: restructure CLI with cobra command framework
- Replace flat flags with organized command structure
- Add commands: sync, list, manage, release, showcase, test
- Implement subcommands for better organization:
- sync: repo, all, codeberg-to-github, github-to-codeberg, bidirectional
- list: orgs, repos
- manage: delete-repo, clean, batch-run
- release: check, create (with --ai-notes support)
- showcase: with --force, --output, --format, --exclude
- test: github-token, codeberg-token, config
- Add comprehensive help with examples for all commands
- Fix config loading bug when path is empty
- Update README.md with new command structure and examples
- Maintain backward compatibility (old flags still work with warnings)
The new structure provides better discoverability, consistent naming,
and logical grouping of related functionality.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -24,22 +24,26 @@ task fmt # Clean build artifacts task clean +``` + +## Usage Examples +```bash # Show version -./gitsyncer --version +gitsyncer version # Delete a repository from all configured organizations (with confirmation) -./gitsyncer --delete-repo <repository-name> +gitsyncer manage delete-repo <repository-name> # Manually check for version tags without releases -./gitsyncer --check-releases +gitsyncer release check # Disable automatic release checking during sync operations -./gitsyncer --sync-all --no-check-releases +gitsyncer sync all --no-releases # Automatically create releases without confirmation prompts -./gitsyncer --check-releases --auto-create-releases -./gitsyncer --sync-all --auto-create-releases +gitsyncer release create --auto +gitsyncer release create --auto --ai-notes ``` Note: Release checking is enabled by default after sync operations. It will check for version tags (formats: vX.Y.Z, vX.Y, vX, X.Y.Z, X.Y, X) that don't have corresponding releases on GitHub/Codeberg and prompt for confirmation before creating them. |
