list

package
v0.4.2-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func FindPkgInfo(workDir string) (pkgroot, pkgpath string, err error)

func ListDepFiles

func ListDepFiles(workDir string, opt *Option) (files []string, err error)

Types

type DepParser

type DepParser struct {
	// contains filtered or unexported fields
}

func NewDepParser

func NewDepParser(root string, opt ...Option) *DepParser

func NewDepParserWithFS

func NewDepParserWithFS(vfs fs.FS, opts ...Option) *DepParser

func (*DepParser) GetAppFiles

func (p *DepParser) GetAppFiles(pkgpath string, includeDependFiles bool) []string

func (*DepParser) GetAppPkgs

func (p *DepParser) GetAppPkgs(pkgpath string, includeDependFiles bool) []string

func (*DepParser) GetDepPkgList

func (p *DepParser) GetDepPkgList(pkgpath string) []string

func (*DepParser) GetImportMap

func (p *DepParser) GetImportMap() map[string][]string

func (*DepParser) GetImportMapString

func (p *DepParser) GetImportMapString() string

func (*DepParser) GetKList

func (p *DepParser) GetKList() []string

func (*DepParser) GetMainKList

func (p *DepParser) GetMainKList() []string

func (*DepParser) GetPkgFileList

func (p *DepParser) GetPkgFileList(pkgpath string) []string

func (*DepParser) GetPkgList

func (p *DepParser) GetPkgList() []string

func (*DepParser) GetTouchedApps

func (p *DepParser) GetTouchedApps(touchedFiles ...string) (touchedApps, untouchedApps []string)

func (*DepParser) IsApp

func (p *DepParser) IsApp(pkgpath string) bool

type Option

type Option struct {
	KclYaml     string // default: Default_KclYaml
	ProjectYaml string // default: Default_ProjectYaml
	FlagAll     bool
	UseAbsPath  bool
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL