Documentation
¶
Index ¶
- func ExtendProjectFromSubdirOf(searchPath string, projectConfigPath string) error
- func GetLocation() (string, error)
- func Init() error
- func WriteProjectConfig(projectConfigPath string, projectConfig *ProjectConfig) error
- type GitRepo
- type GlobalConfig
- type ProjectConfig
- type ShellExecConfig
- type TagFilters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocation ¶
func WriteProjectConfig ¶
func WriteProjectConfig(projectConfigPath string, projectConfig *ProjectConfig) error
Types ¶
type GitRepo ¶
type GlobalConfig ¶
type GlobalConfig struct {
DefaultShell string `yaml:"defaultShell"`
Shells []*ShellExecConfig `yaml:"shells"`
}
func Get ¶
func Get() (*GlobalConfig, error)
func GetDefaultConfig ¶
func GetDefaultConfig() *GlobalConfig
func (*GlobalConfig) GetShellOrDefault ¶
func (c *GlobalConfig) GetShellOrDefault(shellName string) (*ShellExecConfig, error)
type ProjectConfig ¶
type ProjectConfig struct {
GitRepos []*GitRepo `yaml:"gitRepos,omitempty"`
}
func GetProjectConfig ¶
func GetProjectConfig(projectConfigPath string) (*ProjectConfig, error)
func (*ProjectConfig) GetGitRepos ¶
func (c *ProjectConfig) GetGitRepos() []*GitRepo
func (*ProjectConfig) HasGitRepo ¶
func (c *ProjectConfig) HasGitRepo(path string) bool
type ShellExecConfig ¶
type ShellExecConfig struct {
Name string `yaml:"name"`
// Path to the binary or only name if on path.
Bin string `yaml:"bin"`
Args []string `yaml:"args"`
// The arg that preceedes a text command to execute.
CmdArg string `yaml:"cmdArg"`
// The arg that preceedes a script file to execute.
ScriptArg string `yaml:"scriptArg"`
}
type TagFilters ¶
type TagFilters struct {
// contains filtered or unexported fields
}
func NewTagFilters ¶
func NewTagFilters(tfs []string) *TagFilters
Click to show internal directories.
Click to hide internal directories.