config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 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 {
	Organization    string   `yaml:"organization"`
	IncludePublic   *bool    `yaml:"include_public"`
	IncludePrivate  *bool    `yaml:"include_private"`
	IncludeArchived *bool    `yaml:"include_archived"`
	ExcludeRepos    []string `yaml:"exclude_repos"`
	// contains filtered or unexported fields
}

Config represents the application configuration loaded from a YAML file.

func Load

func Load(path string) (*Config, error)

Load reads a YAML configuration file from the given path and returns a parsed Config.

func (*Config) IsExcluded

func (c *Config) IsExcluded(repoName string) bool

IsExcluded checks whether the given repository name matches any pattern in ExcludeRepos.

func (*Config) ShouldIncludeArchived added in v0.1.2

func (c *Config) ShouldIncludeArchived() bool

ShouldIncludeArchived returns true if archived repositories should be included. Defaults to false when not explicitly set.

func (*Config) ShouldIncludePrivate

func (c *Config) ShouldIncludePrivate() bool

ShouldIncludePrivate returns true if private repositories should be included. Defaults to true when not explicitly set.

func (*Config) ShouldIncludePublic

func (c *Config) ShouldIncludePublic() bool

ShouldIncludePublic returns true if public repositories should be included. Defaults to true when not explicitly set.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks the configuration for logical errors.

Jump to

Keyboard shortcuts

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