Documentation
¶
Index ¶
- func HandleDeleteRepo(cfg *config.Config, repoName string) int
- func HandleListOrgs(cfg *config.Config) int
- func HandleListRepos(cfg *config.Config) int
- func HandleSync(cfg *config.Config, flags *Flags) int
- func HandleSyncAll(cfg *config.Config, flags *Flags) int
- func HandleSyncCodebergPublic(cfg *config.Config, flags *Flags) int
- func HandleSyncGitHubPublic(cfg *config.Config, flags *Flags) int
- func HandleTestGitHubToken() int
- func HandleVersion() int
- func LoadConfig(configPath string) (*config.Config, error)
- func ShowConfigHelp()
- func ShowFullSyncMessage()
- func ShowUsage(cfg *config.Config)
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDeleteRepo ¶
HandleDeleteRepo handles the --delete-repo flag
func HandleListOrgs ¶
HandleListOrgs lists configured organizations
func HandleListRepos ¶
HandleListRepos lists configured repositories
func HandleSync ¶
HandleSync handles syncing a single repository
func HandleSyncAll ¶
HandleSyncAll handles syncing all configured repositories
func HandleSyncCodebergPublic ¶
HandleSyncCodebergPublic handles syncing all public Codeberg repositories
func HandleSyncGitHubPublic ¶
HandleSyncGitHubPublic handles syncing all public GitHub repositories
func HandleTestGitHubToken ¶
func HandleTestGitHubToken() int
HandleTestGitHubToken tests GitHub token authentication
func LoadConfig ¶
LoadConfig loads configuration from the specified path or default locations
func ShowConfigHelp ¶
func ShowConfigHelp()
ShowConfigHelp displays help for creating a configuration file
func ShowFullSyncMessage ¶
func ShowFullSyncMessage()
ShowFullSyncMessage displays the full sync mode message
Types ¶
type Flags ¶
type Flags struct { VersionFlag bool ConfigPath string ListOrgs bool ListRepos bool SyncRepo string SyncAll bool SyncCodebergPublic bool SyncGitHubPublic bool FullSync bool CreateGitHubRepos bool CreateCodebergRepos bool DryRun bool WorkDir string TestGitHubToken bool Clean bool DeleteRepo string Backup bool }
Flags holds all command-line flag values
func ParseFlags ¶
func ParseFlags() *Flags
ParseFlags parses command-line flags and returns the flags struct