|
spudplate
Template scaffolding compiler for spudlang .spud files
|
A copy statement - copies contents from a source directory into an existing destination directory.
More...
#include <ast.h>
Public Attributes | |
| PathExpr | source |
| Source directory path. | |
| PathExpr | destination |
| Existing destination directory path. | |
| bool | verbatim |
If true, suppress {var} interpolation. | |
| std::optional< ExprPtr > | when_clause |
| Optional condition guarding the copy. | |
| int | line |
| 1-based source line where this node begins. | |
| int | column |
| 1-based source column where this node begins. | |
A copy statement - copies contents from a source directory into an existing destination directory.
Example: copy standard_templates/ into templatepath
Unlike mkdir ... from, the destination directory must already exist. Use copy to merge multiple sources into a single destination.