Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doc ¶ added in v0.54.2
type Doc struct {
// contains filtered or unexported fields
}
func (*Doc) Description ¶ added in v0.54.2
func (doc *Doc) Description(maxLenght int) string
func (*Doc) IsMarkDown ¶ added in v0.54.2
func (doc *Doc) IsMarkDown() bool
type Module ¶
type Module struct {
*Repo
*Doc
// contains filtered or unexported fields
}
func NewModule ¶
func NewModule(repo *Repo, moduleDir string) (*Module, error)
NewModule returns a module instance if the given `moduleDir` path contains a Terraform module, otherwise returns nil.
func (*Module) Description ¶
func (module *Module) Description() string
Description implements /github.com/charmbracelet/bubbles.list.DefaultItem.Description
func (*Module) FilterValue ¶
func (module *Module) FilterValue() string
FilterValue implements /github.com/charmbracelet/bubbles.list.Item.FilterValue
func (*Module) TerraformSourcePath ¶ added in v0.54.1
func (module *Module) TerraformSourcePath() string
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRepo ¶
func NewRepo(ctx context.Context, logger log.Logger, cloneURL, tempDir string) (*Repo, error)
func (*Repo) FindModules ¶
func (repo *Repo) FindModules(ctx context.Context) (Modules, error)
FindModules clones the repository if `repoPath` is a URL, searches for Terragrunt modules, indexes their README.* files, and returns module instances.
Click to show internal directories.
Click to hide internal directories.