Documentation
¶
Overview ¶
Package projector loads AWF sources and projects the fixed generated surface.
Index ¶
Constants ¶
const InitialProject = `` /* 1099-byte string literal not displayed */
InitialProject is the source created by Init.
const (
// SourceFormat is the only source shape accepted by this binary.
SourceFormat = 1
)
Variables ¶
var Version = strings.TrimSpace(versionFile)
Version is the release identity embedded in this binary.
Functions ¶
This section is empty.
Types ¶
type Output ¶
Output is one complete generated file.
func Build ¶
func Build(sources SourceTree) []Output
Build returns the complete fixed output set for sources.
type Project ¶
type Project struct {
Body []byte
}
Project is the opaque project-specific guidance from .awf/project.md.
type RenderResult ¶
RenderResult describes visible render changes and marked files AWF no longer owns.
func Init ¶
func Init(root string) (RenderResult, error)
Init creates the initial project source and renders the fixed output set.
func Render ¶
func Render(root string) (RenderResult, error)
Render validates sources and writes the complete fixed output set. It never deletes files that are no longer outputs.
type SourceTree ¶
SourceTree is the complete validated source input for one operation.
func Load ¶
func Load(root string) (SourceTree, error)
Load reads and validates the AWF source tree rooted at root.
type TopicMatch ¶
TopicMatch identifies one topic selected by Resolve.