Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config resolves directory-based CLI defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabasePath

func DatabasePath(path string) (string, error)

DatabasePath preserves PostgreSQL URLs and resolves SQLite paths using the same home-relative default on every operating system.

func GitHubRepository

func GitHubRepository(remote string) string

GitHubRepository accepts GitHub.com HTTPS, SSH URL, and SCP-style remotes.

func ResolveFindings

func ResolveFindings(ctx context.Context, dir string, opts SyncOptions) (string, string, error)

ResolveFindings requires a single repository, using the same checkout and explicit selection rules as sync. A short name is accepted with an owner.

func ResolveSync

func ResolveSync(ctx context.Context, dir string, opts SyncOptions) (string, string, error)

Types

type SyncOptions

type SyncOptions struct {
	Org, Repo       string
	OrgSet, RepoSet bool
}

SyncOptions records whether a value came from a flag or environment variable. An explicit organization selects an organization-wide sync unless a repository was also explicitly supplied.

Jump to

Keyboard shortcuts

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