wollemi

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUILD_FILE = "BUILD.plz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanFunc

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

func NewChanFunc

func NewChanFunc(workers, size int) *ChanFunc

func (*ChanFunc) Close

func (this *ChanFunc) Close()

func (*ChanFunc) Run

func (this *ChanFunc) Run(f func())

func (*ChanFunc) RunBlock

func (this *ChanFunc) RunBlock(f func())

type Config added in v0.4.0

type Config = wollemi.Config

type Directory

type Directory struct {
	Path       string                 `json:"path,omitempty"`
	Rule       string                 `json:"-"`
	Gopkg      *golang.Package        `json:"gopkg,omitempty"`
	Build      please.File            `json:"-"`
	Ok         bool                   `json:"-"`
	Rewrite    bool                   `json:"-"`
	InRunPath  bool                   `json:"-"`
	Files      map[string]os.FileInfo `json:"-"`
	GoFiles    []string               `json:"-"`
	BuildFiles []string               `json:"-"`
	HasGoFile  bool                   `json:"-"`
}

func (Directory) String added in v0.7.0

func (Directory) String() string

type Gofmt added in v0.4.0

type Gofmt = wollemi.Gofmt

type Service

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

func New

func New(
	log logging.Logger,
	filesystem wollemi.Filesystem,
	golang golang.Importer,
	please please.Builder,
	root string,
	wd string,
	gosrc string,
	gopkg string,
) *Service

func (*Service) FindBuildFile added in v0.0.3

func (this *Service) FindBuildFile(dir string) (string, error)

func (*Service) Format

func (this *Service) Format(config wollemi.Config, paths []string) error

func (*Service) GoFormat

func (this *Service) GoFormat(config wollemi.Config, paths []string) error

func (*Service) GoPkgPath

func (this *Service) GoPkgPath(elem ...string) string

func (*Service) GoSrcPath

func (this *Service) GoSrcPath(elem ...string) string

func (*Service) ParseDir added in v0.0.3

func (this *Service) ParseDir(buf *bytes.Buffer, dir *Directory) *Directory

func (*Service) ReadDir added in v0.0.3

func (this *Service) ReadDir(path string) (*Directory, error)

func (*Service) ReadDirs added in v0.0.3

func (this *Service) ReadDirs(out chan *Directory, paths ...string) error

func (*Service) RulesUnused

func (this *Service) RulesUnused(prune bool, kinds, paths, exclude []string) error

func (*Service) SymlinkGoPath

func (this *Service) SymlinkGoPath(force bool, paths []string) error
func (this *Service) SymlinkList(name string, broken, prune bool, exclude, include []string) error

Jump to

Keyboard shortcuts

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