config

package
v0.0.0-...-01630c2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// GitHub username
	Username string
	// GitHub PAT
	PersonalAccessToken string
	// Enable verbose logging
	Verbose bool
	// Enable console logging
	Console bool
	// Path to store the backups to
	BackupPath string
	// Maximum number of folders we should delete before considering an error.
	// Set to 0 for returning an error on any deletion.
	// Set to negative value to disable this check.
	MaxFoldersToDelete int
	// Removes folders for which no matching repo was found
	RemoveRedundantFolders bool
}

func ParseConfig

func ParseConfig() (*Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳