Documentation
¶
Index ¶
- Constants
- func FindPkgInfo(workDir string) (pkgroot, pkgpath string, err error)
- func ListDepFiles(workDir string, opt *Option) (files []string, err error)
- type DepParser
- func (p *DepParser) GetAppFiles(pkgpath string, includeDependFiles bool) []string
- func (p *DepParser) GetAppPkgs(pkgpath string, includeDependFiles bool) []string
- func (p *DepParser) GetDepPkgList(pkgpath string) []string
- func (p *DepParser) GetImportMap() map[string][]string
- func (p *DepParser) GetImportMapString() string
- func (p *DepParser) GetKList() []string
- func (p *DepParser) GetMainKList() []string
- func (p *DepParser) GetPkgFileList(pkgpath string) []string
- func (p *DepParser) GetPkgList() []string
- func (p *DepParser) GetTouchedApps(touchedFiles ...string) (touchedApps, untouchedApps []string)
- func (p *DepParser) IsApp(pkgpath string) bool
- type Option
- type SingleAppDepParser
Constants ¶
View Source
const ( Default_KclYaml = "kcl.yaml" Default_ProjectYaml = "project.yaml" )
View Source
const KCL_MOD_PATH_ENV = "${KCL_MOD}"
Variables ¶
This section is empty.
Functions ¶
func FindPkgInfo ¶
Types ¶
type DepParser ¶
type DepParser struct {
// contains filtered or unexported fields
}
func NewDepParser ¶
func (*DepParser) GetAppFiles ¶
func (*DepParser) GetAppPkgs ¶
func (*DepParser) GetDepPkgList ¶
func (*DepParser) GetImportMap ¶
func (*DepParser) GetImportMapString ¶
func (*DepParser) GetMainKList ¶
func (*DepParser) GetPkgFileList ¶
func (*DepParser) GetPkgList ¶
func (*DepParser) GetTouchedApps ¶
type SingleAppDepParser ¶
type SingleAppDepParser struct {
// contains filtered or unexported fields
}
func NewSingleAppDepParser ¶
func NewSingleAppDepParser(root string, opt ...Option) *SingleAppDepParser
func NewSingleAppDepParserWithFS ¶
func NewSingleAppDepParserWithFS(vfs fs.FS, opts ...Option) *SingleAppDepParser
func (*SingleAppDepParser) GetAppFiles ¶
func (p *SingleAppDepParser) GetAppFiles(appPkgpath string, includeDependFiles bool) []string
func (*SingleAppDepParser) GetAppPkgs ¶
func (p *SingleAppDepParser) GetAppPkgs(appPkgpath string, includeDependFiles bool) []string
Click to show internal directories.
Click to hide internal directories.