pytmc template, which takes a TwinCAT project and jinja template source
code to generate project-specific output, now expects all platforms to use
the same delimiter (":") for template filename patterns. Examples include:
Read template from a.template and write expanded version to a.txt:
pytmc template my.tsproj --template a.template:a.txt
Read template from a.template and write results to standard output:
pytmc template my.tsproj --template a.templateThis PR fixes this scenario for back-compat purposes
Read template from standard input and write results to standard output:
pytmc template my.tsproj --template -
Read template from standard input and write results to /path/to/a.txt:
pytmc template my.tsproj --template -:/path/to/a.txt
(Short follow-up PR to #320 )
pytmc template
, which takes a TwinCAT project and jinja template source code to generate project-specific output, now expects all platforms to use the same delimiter (":"
) for template filename patterns. Examples include:a.template
and write expanded version toa.txt
:pytmc template my.tsproj --template a.template:a.txt
a.template
and write results to standard output:pytmc template my.tsproj --template a.template
This PR fixes this scenario for back-compat purposespytmc template my.tsproj --template -
/path/to/a.txt
:pytmc template my.tsproj --template -:/path/to/a.txt