config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 8 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 uses the same home-relative convention 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