Documentation
¶
Overview ¶
Package synclone provides commands for synchronizing and cloning repositories from GitHub, GitLab, Gitea, and other Git platforms.
Package synclone provides CLI commands for bulk repository synchronization across multiple Git forge providers (GitHub, GitLab, Gitea).
The forge subcommand uses the gzh-cli-gitforge orchestration engine with gzh-cli-gitforge providers to enable unified, resumable sync operations with parallel execution and progress tracking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSyncCloneCmd ¶
NewSyncCloneCmd creates a new cobra command for synchronous repository cloning. This command enables cloning multiple repositories from various Git hosting services including GitHub, GitLab, Gitea, and Gogs using configuration files or command-line flags.
Parameters:
- ctx: Context for operation cancellation and timeout control
Returns a configured cobra.Command ready for execution.
func RegisterSyncCloneCmd ¶
func RegisterSyncCloneCmd(appCtx *app.AppContext)
Types ¶
type GzhYamlConfig ¶
type GzhYamlConfig struct {
Organization string `yaml:"organization"`
Provider string `yaml:"provider"`
GeneratedAt time.Time `yaml:"generated_at"`
SyncMode SyncMode `yaml:"sync_mode"`
Repositories []github.RepoInfo `yaml:"repositories"`
}
GzhYamlConfig represents the structure of gzh.yaml file generated in target directory