While installing the package using pip, a command line script tayra is automatically created in bin/ directory. If you are installing it inside a virtual environment you can expect it in the directory <virtual-env-path>/bin/ directory.
Once the command is available in your environment or via PYTHONPATH,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | $ tayra --help
usage: tayra [-h] [-l] [-d] [-s] [-t] [-a ARGS] [-c CONTEXT] [-g DEBUG]
[--version]
ttlfile
Pluggdapps command line script
positional arguments:
ttlfile Input template file containing tayra script
optional arguments:
-h, --help show this help message and exit
-l Do lexical analysis of input file.
-d Dump translation
-s Show AST parse tree
-t Execute test cases.
-a ARGS Argument to template
-c CONTEXT Context to template
-g DEBUG Debug level for PLY argparser
--version Version information of the package
|
Few command line use cases,
1 2 3 4 5 6 7 8 | # Translate a template file to corresponding html file.
$ tayra <template-file>
# Display the AST tree for template file.
$ tayra -s <template-file>
# List out put of lexical analyser for template file.
$ tayra -l <template-file>
|