From 89f34ab3c4b139ec7ac7cae80fe288b94e8f600f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 29 May 2026 10:01:35 +0300 Subject: docs(cli): replace legacy flag examples with cobra subcommands (rq) --- doc/api-reference.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/api-reference.md') diff --git a/doc/api-reference.md b/doc/api-reference.md index b7ed2f8..7ad41b1 100644 --- a/doc/api-reference.md +++ b/doc/api-reference.md @@ -73,16 +73,16 @@ Lists all configured organizations from config. Lists all configured repositories from config. #### func HandleSync(cfg *config.Config, flags *Flags) int -Synchronizes a single repository specified by `--sync` flag. +Synchronizes a single repository, used by `gitsyncer sync repo [name]`. #### func HandleSyncAll(cfg *config.Config, flags *Flags) int -Synchronizes all repositories listed in configuration. +Synchronizes all repositories listed in configuration, used by `gitsyncer sync all`. #### func HandleSyncCodebergPublic(cfg *config.Config, flags *Flags) int -Discovers and syncs all public Codeberg repositories to other platforms. +Discovers and syncs all public Codeberg repositories to other platforms, used by `gitsyncer sync codeberg-to-github`. #### func HandleSyncGitHubPublic(cfg *config.Config, flags *Flags) int -Discovers and syncs all public GitHub repositories to other platforms. +Discovers and syncs all public GitHub repositories to other platforms, used by `gitsyncer sync github-to-codeberg`. ### Helper Functions (sync_handlers.go) -- cgit v1.2.3