Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidCommand indicates an invalid command name. ErrInvalidCommand = errors.New("invalid command name") // ErrProtoFilesNotFound indicates that no ".proto" files were found. ErrProtoFilesNotFound = errors.New("no proto files found") )
Functions ¶
This section is empty.
Types ¶
type Buf ¶
type Buf struct {
// contains filtered or unexported fields
}
Buf represents the buf application structure.
type BufWork ¶
type BufWork struct { Version string `yaml:"version"` Directories []string `yaml:"directories"` // contains filtered or unexported fields }
BufWork represents the buf.work.yaml file.
func ParseBufWork ¶
ParseBufWork parse the buf.work.yaml file at app path.
func (BufWork) AddProtoDir ¶
AddProtoDir add a proto directory path from the buf work file.
func (BufWork) HasProtoDir ¶
HasProtoDir returns true if the proto path exist into the directories slice.
func (BufWork) MissingDirectories ¶
MissingDirectories check if the directories inside the buf work exist.
func (BufWork) RemoveProtoDirs ¶
RemoveProtoDirs remove a list a proto directory paths from the buf work file.
Click to show internal directories.
Click to hide internal directories.