config

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationModeLocalMerge  = "local-merge"
	IntegrationModePullRequest = "pull-request"
)

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() string

FindProjectRoot returns the nearest ancestor directory (inclusive of CWD) that contains a .git directory. Falls back to the current working directory when no git repository is found. The binary's own location is intentionally NOT considered — it would produce wrong results when the tool is installed inside a foreign git repository (e.g. Homebrew at /opt/homebrew).

func IntegrationModeDisplay

func IntegrationModeDisplay(mode string) string

func NormalizeIntegrationMode

func NormalizeIntegrationMode(mode string) string

func ProjectConfigPath

func ProjectConfigPath(root string) string

func SaveAIIntegrationChoice

func SaveAIIntegrationChoice(root string, choice AIIntegrationChoice) error

func SetIntegrationMode

func SetIntegrationMode(root, mode string) error

Types

type AIIntegrationChoice

type AIIntegrationChoice struct {
	Enabled bool   `json:"enabled"`
	Version string `json:"version,omitempty"`
}

func LoadAIIntegrationChoice

func LoadAIIntegrationChoice(root string) (AIIntegrationChoice, bool, error)

type FlowConfig

type FlowConfig struct {
	Remote           string `json:"remote"`
	MainBranch       string `json:"main_branch"`
	DevelopBranch    string `json:"develop_branch"`
	IntegrationMode  string `json:"integration_mode"`
	VersionFile      string `json:"version_file"`
	VersionPattern   string `json:"version_pattern"`
	BumpCommand      string `json:"bump_command"`
	BuildBumpCommand string `json:"build_bump_command"`
	TagPrefix        string `json:"tag_prefix"`
	TestCommand      string `json:"test_command"`
	ProjectRoot      string `json:"-"`
	ModeConfigured   bool   `json:"-"`
}

func DefaultConfig

func DefaultConfig() FlowConfig

func LoadConfig

func LoadConfig(root string) FlowConfig

Jump to

Keyboard shortcuts

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