Documentation
¶
Index ¶
Constants ¶
View Source
const (
FeatureBranchPrefix = "feature/"
)
Variables ¶
View Source
var ( ErrEmptyAccessToken = errors.New("empty access token") ErrEmptyGitlabAPI = errors.New("empty gitlab API URL") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AccessToken string `toml:"access_token"`
DebugMode bool `toml:"debug"`
GitlabAPIURL string `toml:"gitlab_api_url"`
OpenBrowser bool `toml:"open_browser"`
}
Config contains all fields can be specified by user.
type FlowContext ¶
type FlowContext struct {
// Conf of flow CLI.
Conf *Config
// CWD current working directory.
CWD string
// Project of current working directory, normally,
// get from current working directory.
Project *ProjectBasics
// contains filtered or unexported fields
}
FlowContext contains all necessary parameters of flow command to execute.
func NewContext ¶
func NewContext(cwd, confPath, projectName string, c *Config, forceRemote bool) *FlowContext
NewContext be generated with non project information. Do not use Project directly!!!
func (*FlowContext) ConfPath ¶
func (c *FlowContext) ConfPath() string
ConfPath return configuration path
func (*FlowContext) ForceRemote ¶ added in v1.6.2
func (c *FlowContext) ForceRemote() bool
ForceRemote return should module need to locate project by projectName from remote. true means locate project from remote, false means do not jump the process of locating project from local.
func (*FlowContext) ProjectName ¶ added in v1.6.0
func (c *FlowContext) ProjectName() string
ProjectName return project name.
type ProjectBasics ¶
ProjectBasics contains basic attributes of project.
Click to show internal directories.
Click to hide internal directories.