Documentation
¶
Index ¶
- Constants
- func FindProjectRoot() string
- func IntegrationModeDisplay(mode string) string
- func NormalizeIntegrationMode(mode string) string
- func ProjectConfigPath(root string) string
- func SaveAIIntegrationChoice(root string, choice AIIntegrationChoice) error
- func SetIntegrationMode(root, mode string) error
- type AIIntegrationChoice
- type FlowConfig
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 ProjectConfigPath ¶
func SaveAIIntegrationChoice ¶
func SaveAIIntegrationChoice(root string, choice AIIntegrationChoice) error
func SetIntegrationMode ¶
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
Click to show internal directories.
Click to hide internal directories.