Documentation ¶
Index ¶
Constants ¶
View Source
const ModeCurrentAffected = "current_affected"
ModeCurrentAffected will execute the specified commands if any of the current components dependecies have changed
View Source
const ModeCurrentChanged = "current_changed"
ModeCurrentChanged will execute the specified commands if the current component has changed
View Source
const ModeCurrentInvolved = "current_involved"
ModeCurrentInvolved will execute the specified commands if the current component or any of its dependecies have changed
Variables ¶
View Source
var Main = &cobra.Command{
Use: "monorepo",
Short: "Helpers for CircleCI Monorepo Support",
}
Main cobra command for monorepo support
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { ID string `yaml:"id"` Name string `yaml:"name"` Dependencies []string `yaml:"deps"` Path string `yaml:"path"` }
Component struct represent the configuration stored in yaml enriched by the relative path of the component in relation to the rootDirectory.
type ComponentGraph ¶
type ComponentGraph struct {
// contains filtered or unexported fields
}
ComponentGraph struct represent the graph of all components found in the specified rootDirectory and its subdirectories.
Click to show internal directories.
Click to hide internal directories.