config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config loads linctl configuration from files and profiles.

Index

Constants

This section is empty.

Variables

View Source
var ErrProfileNotFound = errors.New("profile not found")

ErrProfileNotFound marks an explicitly requested profile that does not exist.

Functions

This section is empty.

Types

type LoadRequest

type LoadRequest struct {
	GlobalPath      string
	RepoPath        string
	ProfileOverride string
	TargetOverride  Target
}

LoadRequest describes the config sources to load.

type Resolved

type Resolved struct {
	Profile string
	Target  Target
}

Resolved is the effective linctl configuration.

func Load

func Load(ctx context.Context, request LoadRequest) (Resolved, error)

Load resolves config with repo config overriding global config, then explicit overrides.

type Target

type Target struct {
	OrgID     string `toml:"org_id"`
	TeamKey   string `toml:"team_key"`
	TeamID    string `toml:"team_id"`
	ProjectID string `toml:"project_id"`
}

Target is the pinned Linear write target.

Jump to

Keyboard shortcuts

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