sync

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullOptions

type PullOptions struct {
	Force bool
	Jobs  int
}

PullOptions contains options for the pull command

type PullResult

type PullResult struct {
	Updated int
	Failed  int
	Skipped int
}

PullResult contains the results of a pull operation

func RunPull

func RunPull(cfg *config.Config, opts PullOptions) (*PullResult, error)

RunPull pulls all repos for all configured sources

type RepoStatus

type RepoStatus struct {
	Name        string
	FullName    string
	LocalPath   string
	Status      ui.DiffStatus
	InConfig    bool
	ExistsLocal bool
}

func ComputeSourceStatus

func ComputeSourceStatus(source *config.Source) ([]RepoStatus, error)

ComputeSourceStatus computes the status of repos for a single source without performing any actions. Returns the list of repo statuses.

type SyncOptions

type SyncOptions struct {
	Prune      bool
	Add        bool
	Force      bool
	ConfigPath string
	Jobs       int
	DryRun     bool
}

type SyncResult

type SyncResult struct {
	Cloned  int
	Pruned  int
	Skipped int
	Added   int
}

func Run

func Run(cfg *config.Config, opts SyncOptions) (*SyncResult, error)

Jump to

Keyboard shortcuts

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