cli

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCheckReleases added in v0.6.2

func HandleCheckReleases(cfg *config.Config, flags *Flags) int

HandleCheckReleases checks for version tags without releases and creates them with confirmation

func HandleCheckReleasesForRepo added in v0.6.2

func HandleCheckReleasesForRepo(cfg *config.Config, flags *Flags, repoName string) int

HandleCheckReleasesForRepo checks releases for a specific repository

func HandleCheckReleasesForRepos added in v0.6.2

func HandleCheckReleasesForRepos(cfg *config.Config, flags *Flags, repositories []string) int

HandleCheckReleasesForRepos checks for version tags without releases and creates them with confirmation

func HandleDeleteRepo

func HandleDeleteRepo(cfg *config.Config, repoName string) int

HandleDeleteRepo handles the --delete-repo flag

func HandleListOrgs

func HandleListOrgs(cfg *config.Config) int

HandleListOrgs lists configured organizations

func HandleListRepos

func HandleListRepos(cfg *config.Config) int

HandleListRepos lists configured repositories

func HandleShowcase added in v0.4.0

func HandleShowcase(cfg *config.Config, flags *Flags) int

HandleShowcase handles the showcase generation after syncing

func HandleShowcaseOnly added in v0.4.0

func HandleShowcaseOnly(cfg *config.Config, flags *Flags) int

HandleShowcaseOnly handles showcase generation without syncing It will clone repositories if they don't exist locally, but won't sync changes

func HandleSync

func HandleSync(cfg *config.Config, flags *Flags) int

HandleSync handles syncing a single repository

func HandleSyncAll

func HandleSyncAll(cfg *config.Config, flags *Flags) int

HandleSyncAll handles syncing all configured repositories

func HandleSyncCodebergPublic

func HandleSyncCodebergPublic(cfg *config.Config, flags *Flags) int

HandleSyncCodebergPublic handles syncing all public Codeberg repositories

func HandleSyncGitHubPublic

func HandleSyncGitHubPublic(cfg *config.Config, flags *Flags) int

HandleSyncGitHubPublic handles syncing all public GitHub repositories

func HandleTestGitHubToken

func HandleTestGitHubToken() int

HandleTestGitHubToken tests GitHub token authentication

func HandleVersion

func HandleVersion() int

HandleVersion prints version information

func LoadConfig

func LoadConfig(configPath string) (*config.Config, error)

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

func ShowUsage

func ShowUsage(cfg *config.Config)

ShowUsage displays the usage information

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
	Showcase            bool
	Force               bool
	BatchRun            bool
	CheckReleases       bool
	NoCheckReleases     bool
	AutoCreateReleases  bool
	AIReleaseNotes      bool
	UpdateReleases      bool
	AITool              string

	// Internal fields for batch run state management (not set by flags)
	BatchRunStateManager *state.Manager
	BatchRunState        *state.State
}

Flags holds all command-line flag values

func ParseFlags

func ParseFlags() *Flags

ParseFlags parses command-line flags and returns the flags struct

Jump to

Keyboard shortcuts

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