Documentation
¶
Index ¶
Constants ¶
View Source
const GraphRootName = "graphRoot"
GraphRootName represents the root of the graph of modules in a project
Variables ¶
View Source
var RootDir = "./"
Functions ¶
func CreateProjectConfigFile ¶
func CreateProjectConfigFile(dir string, projectName string, projectContext *ZeroProjectConfig) error
CreateProjectConfigFile extracts the required content for zero project config file then write to disk.
func SetRootDir ¶
func SetRootDir(dir string)
Types ¶
type Module ¶
type Module struct {
DependsOn []string `yaml:"dependsOn,omitempty"`
Parameters Parameters `yaml:"parameters,omitempty"`
Files Files
Conditions []Condition `yaml:"conditions,omitempty"`
}
type Parameters ¶
type ZeroProjectConfig ¶
type ZeroProjectConfig struct {
Name string `yaml:"name"`
ShouldPushRepositories bool `yaml:"shouldPushRepositories"`
Parameters map[string]string
Modules Modules `yaml:"modules"`
}
func LoadConfig ¶
func LoadConfig(filePath string) *ZeroProjectConfig
func (*ZeroProjectConfig) GetDAG ¶
func (c *ZeroProjectConfig) GetDAG() dag.AcyclicGraph
GetDAG returns a graph of the module names used in this project config
func (*ZeroProjectConfig) Print ¶
func (c *ZeroProjectConfig) Print()
Click to show internal directories.
Click to hide internal directories.