cmdweave

package
v0.24.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Overview

Builds a story database from story files.

Index

Constants

This section is empty.

Variables

View Source
var CmdWeave = &base.Command{
	Run:       runWeave,
	Flag:      buildFlags(),
	UsageLine: "tap weave [-in path] [-out path]",
	Short:     "compile a story",
	Long: `Turns story files into produces a playable database.

Using '-check' or '-run=<name>' can run all unit tests, or a specific one.
The weave command provides an option to locate the shared Tapestry libraries. 
If that location doesn't exist, weave uses a set of built-in libraries.
`,
}

Functions

func WeavePaths

func WeavePaths(outFile string, stories ...NamedFS) (err error)

Read all of the passed files and compile the output into ents NEW database at outFile. This will attempt to erase any existing outFile. uses WalkDir which doesn't follow symlinks of sub-directories.

Types

type NamedFS added in v0.24.8

type NamedFS struct {
	Name string
	fs.FS
}

func (NamedFS) Open added in v0.24.8

func (l NamedFS) Open(fullpath string) (fs.File, error)

Jump to

Keyboard shortcuts

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