- Fixed bug where
run
directives still executed when dependency is not built yet
- New
after
directive to specify dependency explicitly
- Temp files are no longer re-written if they are already up-to-date in both verify and build mode
- New flag
--needed/-N
and corresponding modeInMemoryBuild
that stores the fresh output in memory and only writes the file if different
- Verify mode no longer re-writes temp files if they are already up-to-date.
- Migrate repo and update links. (otherwise same as 0.1.4)
- Fixed a bug where directives are not displayed correctly in error messages.
temp
directives will now error if the export path is a.txtpp
file.- Improved console output and error messages
txtpp
binary will now error if ran as a subcommand (i.e. ifTXTPP_FILE
environment variable is set)- Fixed a bug with the
write
directive where the first argument is skipped in the output.
- More consistent handling of trailing newlines:
- Directive output will be written to the output as-is. If the output has no trailing newline (for example, the included file has no trailing newline, or if the run output prints no newline in the end), the next line in the source will be on the same line as the last line of the directive output.
- Temporary files will have a trailing newline if the
temp
directive has an empty line in the end, and vice versa. - Output files will always have a trailing newline, or always have no trailing newlines with the
--no-trailing-newline
flag.
- Unused tags at the end of the file will now be an error.
- Fix rust verbatim paths not supported as working directory for powershell/cmd on windows.
- Shell on windows is now resolved as
pwsh
>powershell
>cmd
- Fix formatting issues with
tag
andtemp
tag
No longer stores extra newline.tag
No longer prepends whitespaces to the stored outputtemp
will not add a newline character if the file should be empty (i.e. only the filename is specified, no content)
clean
will ignore directive errors in the.txtpp
files.
verify
mode now fails as soon as output differs, instead of processing the entire file and compare.clean
mode cleans output oftemp
directives.- If non-existent targets are passed as inputs, they will be an error.
- Directives in consecutive lines now work.
- Fix file not processed properly if a dependency finishes before it.
include
,run
,temp
,tag
,write
directives- CLI