internal

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepos

func CloneRepos(repos []*github.Repository, cloneDir string)

CloneRepos clones the given repositories

func CloneReposFromCache

func CloneReposFromCache(repos []*cache.CachedRepo, cloneDir string)

CloneReposFromCache clones repositories from cached results

func ConfigExists added in v0.0.2

func ConfigExists() bool

ConfigExists returns true if a config file exists

func SaveConfig added in v0.0.2

func SaveConfig(cfg *Config) error

SaveConfig writes the config to the preferred config file location. Creates the config directory if it doesn't exist.

Types

type Config

type Config struct {
	DefaultOrg  string `json:"default_org"`
	DefaultTeam string `json:"default_team"`
}

Config holds the application configuration

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig reads the config file following XDG Base Directory Specification. It checks in order:

  1. $XDG_CONFIG_HOME/town/config.json
  2. ~/.town/config.json (fallback)

Returns an empty Config (not an error) if no config file exists.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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