config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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

func IntegrationModeDisplay added in v0.5.22

func IntegrationModeDisplay(mode string) string

func NormalizeIntegrationMode added in v0.5.22

func NormalizeIntegrationMode(mode string) string

func ProjectConfigPath added in v0.5.29

func ProjectConfigPath(root string) string

func RemoveAIIntegrationChoice added in v0.7.0

func RemoveAIIntegrationChoice(root string) error

RemoveAIIntegrationChoice deletes the `ai_integration` key from the project's config file (and the legacy on-disk file if present). If the config ends up empty, the file is left in place with an empty JSON object so subsequent Save calls do not re-create the file. Used by `gitflow setup --uninstall`.

func SaveAIIntegrationChoice added in v0.5.29

func SaveAIIntegrationChoice(root string, choice AIIntegrationChoice) error

func SetIntegrationMode added in v0.5.22

func SetIntegrationMode(root, mode string) error

Types

type AIIntegrationChoice added in v0.5.29

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

func LoadAIIntegrationChoice added in v0.5.29

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