Documentation ¶
Index ¶
- func GetCodeBlocks(filepath string, allowUnknown bool, allowUnnamed bool, fs billy.Basic) (document.CodeBlocks, error)
- func GetCodeBlocksAndParseFrontmatter(filepath string, allowUnknown bool, allowUnnamed bool, fs billy.Basic) (document.CodeBlocks, document.Frontmatter, error)
- func GetCurrentGitEmail(cwd string) (string, error)
- func ReadMarkdownFile(filepath string, fs billy.Basic) ([]byte, error)
- type Branch
- type CodeBlock
- type CodeBlockFS
- type CodeBlocks
- func (blocks CodeBlocks) Lookup(queryName string) []CodeBlock
- func (blocks CodeBlocks) LookupByFile(queryFile string) ([]CodeBlock, error)
- func (blocks CodeBlocks) LookupByID(query string) ([]CodeBlock, error)
- func (blocks CodeBlocks) LookupWithFile(queryFile string, queryName string) ([]CodeBlock, error)
- func (blocks CodeBlocks) Names() []string
- type DirectoryProject
- func (p *DirectoryProject) Dir() string
- func (p *DirectoryProject) EnvLoadOrder() []string
- func (p *DirectoryProject) LoadEnvs() (map[string]string, error)
- func (p *DirectoryProject) LoadTasks() (CodeBlocks, error)
- func (p *DirectoryProject) SetEnvLoadOrder(envLoadOrder []string)
- func (p *DirectoryProject) SetRespectGitignore(respectGitignore bool)
- type DirectoryProjectMatcher
- type ErrCodeBlockFileNotFound
- type ErrCodeBlockNameNotFound
- type FileCodeBlock
- type Project
- type Resolver
- type SingleFileProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCodeBlocks ¶ added in v1.2.0
func GetCodeBlocksAndParseFrontmatter ¶ added in v1.2.1
func GetCodeBlocksAndParseFrontmatter(filepath string, allowUnknown bool, allowUnnamed bool, fs billy.Basic) (document.CodeBlocks, document.Frontmatter, error)
func GetCurrentGitEmail ¶
func ReadMarkdownFile ¶ added in v1.2.0
Types ¶
type CodeBlock ¶ added in v1.2.0
type CodeBlock struct { Block *document.CodeBlock File string Frontmatter document.Frontmatter // contains filtered or unexported fields }
func (CodeBlock) GetFileRel ¶ added in v1.2.1
func (CodeBlock) GetFrontmatter ¶ added in v1.2.1
func (b CodeBlock) GetFrontmatter() document.Frontmatter
type CodeBlockFS ¶ added in v1.2.1
type CodeBlockFS interface { billy.Basic billy.Chroot }
type CodeBlocks ¶ added in v1.2.0
type CodeBlocks []CodeBlock
func (CodeBlocks) Lookup ¶ added in v1.2.0
func (blocks CodeBlocks) Lookup(queryName string) []CodeBlock
func (CodeBlocks) LookupByFile ¶ added in v1.2.0
func (blocks CodeBlocks) LookupByFile(queryFile string) ([]CodeBlock, error)
func (CodeBlocks) LookupByID ¶ added in v1.2.0
func (blocks CodeBlocks) LookupByID(query string) ([]CodeBlock, error)
func (CodeBlocks) LookupWithFile ¶ added in v1.2.0
func (blocks CodeBlocks) LookupWithFile(queryFile string, queryName string) ([]CodeBlock, error)
func (CodeBlocks) Names ¶ added in v1.2.0
func (blocks CodeBlocks) Names() []string
type DirectoryProject ¶ added in v1.2.0
type DirectoryProject struct {
// contains filtered or unexported fields
}
func NewDirectoryProject ¶ added in v1.2.0
func (*DirectoryProject) Dir ¶ added in v1.2.0
func (p *DirectoryProject) Dir() string
func (*DirectoryProject) EnvLoadOrder ¶ added in v1.2.0
func (p *DirectoryProject) EnvLoadOrder() []string
func (*DirectoryProject) LoadEnvs ¶ added in v1.2.0
func (p *DirectoryProject) LoadEnvs() (map[string]string, error)
func (*DirectoryProject) LoadTasks ¶ added in v1.2.0
func (p *DirectoryProject) LoadTasks() (CodeBlocks, error)
func (*DirectoryProject) SetEnvLoadOrder ¶ added in v1.2.0
func (p *DirectoryProject) SetEnvLoadOrder(envLoadOrder []string)
func (*DirectoryProject) SetRespectGitignore ¶ added in v1.2.0
func (p *DirectoryProject) SetRespectGitignore(respectGitignore bool)
type DirectoryProjectMatcher ¶ added in v1.2.0
type DirectoryProjectMatcher struct {
// contains filtered or unexported fields
}
TODO(mxs): support `.runmeignore` file
type ErrCodeBlockFileNotFound ¶ added in v1.2.0
type ErrCodeBlockFileNotFound struct {
// contains filtered or unexported fields
}
func (ErrCodeBlockFileNotFound) Error ¶ added in v1.2.0
func (e ErrCodeBlockFileNotFound) Error() string
func (ErrCodeBlockFileNotFound) FailedFileQuery ¶ added in v1.2.0
func (e ErrCodeBlockFileNotFound) FailedFileQuery() string
type ErrCodeBlockNameNotFound ¶ added in v1.2.0
type ErrCodeBlockNameNotFound struct {
// contains filtered or unexported fields
}
func (ErrCodeBlockNameNotFound) Error ¶ added in v1.2.0
func (e ErrCodeBlockNameNotFound) Error() string
func (ErrCodeBlockNameNotFound) FailedNameQuery ¶ added in v1.2.0
func (e ErrCodeBlockNameNotFound) FailedNameQuery() string
type FileCodeBlock ¶ added in v1.2.0
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
type SingleFileProject ¶ added in v1.2.0
type SingleFileProject struct {
// contains filtered or unexported fields
}
func NewSingleFileProject ¶ added in v1.2.0
func NewSingleFileProject(file string, allowUnknown bool, allowUnnamed bool) *SingleFileProject
func (*SingleFileProject) Dir ¶ added in v1.2.0
func (p *SingleFileProject) Dir() string
func (*SingleFileProject) EnvLoadOrder ¶ added in v1.2.0
func (p *SingleFileProject) EnvLoadOrder() []string
func (*SingleFileProject) LoadEnvs ¶ added in v1.2.0
func (p *SingleFileProject) LoadEnvs() (map[string]string, error)
func (*SingleFileProject) LoadTasks ¶ added in v1.2.0
func (p *SingleFileProject) LoadTasks() (CodeBlocks, error)
Click to show internal directories.
Click to hide internal directories.