cmdweave

package
v0.0.0-...-8aeb6ef Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 23 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 ...fs.FS) (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

This section is empty.

Jump to

Keyboard shortcuts

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