Documentation ¶
Index ¶
- type MonoRepo
- func (m *MonoRepo) Add(p Project)
- func (m *MonoRepo) Clone() error
- func (m *MonoRepo) Exec(command string)
- func (m *MonoRepo) ExecOnProject(p Project, command string)
- func (m *MonoRepo) GetProject(name string) (Project, error)
- func (m *MonoRepo) Remove() error
- func (m *MonoRepo) SplitProject(p Project, branch string) string
- func (m *MonoRepo) Sync(branch string, useForce bool)
- func (m *MonoRepo) WriteConfigFile(configFile string) error
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonoRepo ¶
type MonoRepo struct { Projects []Project `yaml:"projects"` OperatingDir string `yaml:"operating-directory"` }
func NewMonoRepo ¶
NewMonoRepo creates a new instance with the content from the given config file
func NewMonoRepoFromPath ¶
func NewMonoRepoFromPath(gitBaseUrl string, subtreeParentDirectory string, operatingDir string) *MonoRepo
NewMonoRepoFromPath will initialize all directories under a specified path as a sub-tree repository
func (*MonoRepo) Clone ¶
Clone will clone all repositories which are configured into the operating directory
func (*MonoRepo) ExecOnProject ¶
ExecOnProject executes a command on a single project
func (*MonoRepo) GetProject ¶
GetProject returns a project by name, if no project was found it will return an error.
func (*MonoRepo) SplitProject ¶
SplitProject splits the project and returns the hash or branch name If no branch name is given it will only create a hash for the subtree
func (*MonoRepo) Sync ¶
Sync will create subtrees of all projects and create a branch for it after that it will be pushed to the remote destination
func (*MonoRepo) WriteConfigFile ¶
WriteConfigFile writes the content of the MonoRepo struct to a given config file