Documentation
¶
Index ¶
- Constants
- func FindProjectRoot() string
- func IntegrationModeDisplay(mode string) string
- func NormalizeIntegrationMode(mode string) string
- func ProjectConfigPath(root string) string
- func RemoveAIIntegrationChoice(root string) error
- 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
func IntegrationModeDisplay ¶ added in v0.5.22
func NormalizeIntegrationMode ¶ added in v0.5.22
func ProjectConfigPath ¶ added in v0.5.29
func RemoveAIIntegrationChoice ¶ added in v0.7.0
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
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
Click to show internal directories.
Click to hide internal directories.