exp:ezapplytemplate
Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.
Summary
Apply the template blocks found in files and write the files back (exit code 0, 1 or 2)
Usage
./console exp:ezapplytemplate [options] php bin/php/ezapplytemplate.php [options]
Help
The output of ./console help exp:ezapplytemplate (the script run with --help), without the standard options:
Usage: bin/php/ezapplytemplate.php [OPTION]... [FILE] Exponential Code Template Generator This will apply any template blocks it finds in files and writes back the new file The return code is set to 0 if no changes occured, 1 if a file is changed or 2 if an error occurs Options: -a --all Go trough all files defined in codetemplate.ini --check-only Will only check if the files will be changed or have errors
Options
| Option | Value | Description |
|---|---|---|
| -a | - | |
| --all | - | Go trough all files defined in codetemplate.ini |
| --check-only | - | Will only check if the files will be changed or have errors |
Arguments
[file]
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/ezapplytemplate.php, kernel/private/classes/commands/ezapplytemplate.php
See also
Generated example: exp:ezapplytemplate
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment