Documentation ¶
Index ¶
Constants ¶
View Source
const FILEPATH_REPOSITORY = "./.cbm/template/test.toml"
Variables ¶
View Source
var CManager = Manager{ Language: "C", Extensions: []string{".c", ".h"}, }
View Source
var GoManager = Manager{ Language: "Go", Extensions: []string{".go"}, }
View Source
var ManagedLangage = map[string]Manager{ "C": CManager, "Go": GoManager, }
Functions ¶
func ProcessModules ¶
func ProcessModules(moduleList *Repository, module *Module, path string)
Types ¶
type FileParser ¶
type FileParser struct {
Path, Name string
}
func (FileParser) String ¶
func (f FileParser) String() string
type Module ¶
type Module struct {
Path, Name string
Files []*FileParser
}
func (*Module) Append ¶
func (m *Module) Append(path, name string) *FileParser
type RepoTemplate ¶
type RepoTemplate struct { Language []string `toml:"Language"` Modules []string `toml:Modules` Tests []string `toml:Tests` }
func GetTomlRepo ¶
func GetTomlRepo(filepath string) (*RepoTemplate, error)
type Repository ¶
type Repository struct {
Modules []*Module
}
func ParseRepository ¶
func ParseRepository(path string) (*Repository, error)
func (*Repository) Append ¶
func (r *Repository) Append(path, name string) *Module
func (*Repository) Clean ¶
func (r *Repository) Clean()
func (Repository) String ¶
func (r Repository) String() string
Click to show internal directories.
Click to hide internal directories.