synclone

package
v0.0.0-...-3e6a3a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 30 Imported by: 0

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

func NewSyncCloneCmd(ctx context.Context, appCtx *app.AppContext) *cobra.Command

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

type SyncMode

type SyncMode struct {
	CleanupOrphans bool `yaml:"cleanup_orphans"`
}

SyncMode represents synchronization configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL