Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alias ¶
type Alias struct {
Type AliasType `mapstructure:"type"`
Name string `mapstructure:"name"`
// Literal
Flags map[string][]string `mapstructure:"flags,omitempty"`
// FilePattern
Paths []string `mapstructure:"paths,omitempty"`
Patterns []string `mapstructure:"patterns,omitempty"`
// Command
Command *string `mapstructure:"command,omitempty"`
Timeout *int64 `mapstructure:"timeout,omitempty"`
}
Alias is a catch-all type for alias configurations
type AliasType ¶
type AliasType string
const ( Literal AliasType = "literal" CamelCase AliasType = "camelcase" PascalCase AliasType = "pascalcase" SnakeCase AliasType = "snakecase" UpperSnakeCase AliasType = "uppersnakecase" KebabCase AliasType = "kebabcase" DotCase AliasType = "dotcase" FilePattern AliasType = "filepattern" Command AliasType = "command" )
type Delimiters ¶
type Options ¶
type Options struct {
AccessToken string `mapstructure:"accessToken"`
BaseUri string `mapstructure:"baseUri"`
Branch string `mapstructure:"branch"`
CommitUrlTemplate string `mapstructure:"commitUrlTemplate"`
DefaultBranch string `mapstructure:"defaultBranch"`
Dir string `mapstructure:"dir" yaml:"-"`
HunkUrlTemplate string `mapstructure:"hunkUrlTemplate"`
OutDir string `mapstructure:"outDir"`
ProjKey string `mapstructure:"projkey"`
RepoName string `mapstructure:"repoName"`
RepoType string `mapstructure:"repoType"`
RepoUrl string `mapstructure:"repoUrl"`
Revision string `mapstructure:"revision"`
Subdirectory string `mapstructure:"subdirectory"`
UserAgent string `mapstructure:"userAgent"`
ContextLines int `mapstructure:"contextLines"`
Lookback int `mapstructure:"lookback"`
UpdateSequenceId int `mapstructure:"updateSequenceId"`
AllowTags bool `mapstructure:"allowTags"`
Debug bool `mapstructure:"debug"`
DryRun bool `mapstructure:"dryRun"`
IgnoreServiceErrors bool `mapstructure:"ignoreServiceErrors"`
Prune bool `mapstructure:"prune"`
SkipArchivedFlags bool `mapstructure:"skipArchivedFlags"`
Aliases []Alias `mapstructure:"aliases"`
Delimiters Delimiters `mapstructure:"delimiters"`
Projects []Project `mapstructure:"projects"`
}
func GetOptions ¶
func GetWrapperOptions ¶
func (Options) GetProjectKeys ¶
func (Options) ValidateRequired ¶
Click to show internal directories.
Click to hide internal directories.