setting

package
v3.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapPhlowConfig

func BootstrapPhlowConfig(local, integrationBranch string) error

BootstrapPhlowConfig ... Creates a new .phlow ini file on given location

func GetDefaultBranchFromInternalDefault

func GetDefaultBranchFromInternalDefault() (string, error)

GetDefaultBranchFromInternalDefault ... Trying to retrieve the default branch from github

func GetGlobal

func GetGlobal() string

GetGlobal ...

func GetLocal

func GetLocal() string

GetLocal ...

func ValidateLoadedSetting

func ValidateLoadedSetting(setting *ProjectSetting) error

ValidateLoadedSetting ...

Types

type ProjectSetting

type ProjectSetting struct {
	Service              string `ini:"service"`
	IntegrationBranch    string `ini:"integration_branch"`
	Remote               string `ini:"remote"`
	IssueURL             string `ini:"issue_url"`
	PipelineUrl          string `ini:"pipeline"`
	DeliveryBranchPrefix string `ini:"delivery_branch_prefix"`
	Scope                string
	File                 string
	INIBlock             string
}

ProjectSetting ...

func LoadProjectSettings

func LoadProjectSettings(local, global string, INIBlock string) *ProjectSetting

LoadProjectSettings ...

func NewProjectStg

func NewProjectStg(INIBlock string) *ProjectSetting

NewProjectStg ... initializes project settings from .phlow INI files

type ToolsSetting

type ToolsSetting struct {
	User    string
	Token   string
	AutoAdd bool
}

Uses git config commandline interface ToolsSetting ...

func LoadToolSettings

func LoadToolSettings(run executor.Runner) *ToolsSetting

LoadToolSettings ...

func NewToolStg

func NewToolStg() *ToolsSetting

NewToolStg ... Initializes Tool settings from .gitconfig

Jump to

Keyboard shortcuts

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