config

package
v0.0.0-...-1a9c2fa Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config handles the configuration settings for the GitHub mirror sync tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags adds the configuration flags to the given command.

Types

type Config

type Config struct {
	// GitHub token for authentication
	GithubToken string

	// Repository URLs
	PrimaryRepo string
	MirrorRepo  string

	// Branch names
	PrimaryBranch string
	MirrorBranch  string

	// Synchronization settings
	SyncInterval string
	ForceSync    bool

	// Output configuration
	OutputFile    string
	SetupWorkflow bool
	Verbose       bool
}

Config holds the application configuration.

func Load

func Load() (*Config, error)

Load parses the flags and environment variables to build the configuration.

Jump to

Keyboard shortcuts

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