sync

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableProviders added in v0.1.1

func GetAvailableProviders() []string

GetAvailableProviders returns the list of all available providers from registry

func GetEnabledProviders added in v0.1.1

func GetEnabledProviders() []string

GetEnabledProviders returns the list of enabled providers from registry

Types

type Config

type Config struct {
	ProjectOverview    string
	CommonInstructions string
	ProviderOverrides  map[string]string
	Providers          []string
}

Config represents parsed RIZOME.md configuration

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles synchronization of RIZOME.md with provider files

func New

func New(baseDir string) (*Manager, error)

New creates a new sync manager

func (*Manager) GetConfig

func (m *Manager) GetConfig() *Config

GetConfig returns the parsed configuration

func (*Manager) Sync

func (m *Manager) Sync(dryRun, force bool) ([]SyncResult, error)

Sync performs the synchronization operation for all providers

func (*Manager) SyncFromProvider added in v0.1.1

func (m *Manager) SyncFromProvider(sourceProvider string, destinations []string, dryRun, force bool) ([]SyncResult, error)

SyncFromProvider performs sync from a provider file to other files

func (*Manager) SyncProviders

func (m *Manager) SyncProviders(providers []string, dryRun, force bool) ([]SyncResult, error)

SyncProviders performs the synchronization operation for specific providers

type SyncResult

type SyncResult struct {
	Provider string
	Created  bool
	Updated  bool
	Error    error
}

SyncResult represents the result of syncing a provider file

Jump to

Keyboard shortcuts

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