Using the Transdoc CLI
Transdoc can be accessed using a CLI with the transdoc command.
Rule file
You can specify a Python file containing the Transdoc rules you wish to use
while transforming your documentation using the -r flag.
Input files
You can specify an input file or directory as the primary argument.
If a file is given, its transformed output will be written to stdout.
Otherwise, you must specify an output directory, or use the --dryrun flag.
Output files
By using the -o flag, you can specify your intended output file/directory.
Other options
--dryrun: don't produce any output file(s). Just check for errors in the inputs. This still evaluates all rules, so any side effects of rule evaluation will still occur.--force: always overwrite the output file/directory, regardless of whether it contains data.-v,-vv,-vvv: control verbosity of logging.--help: show help information--version: show version information
Additional notes
You can disable the pride flags in the --help output by using the NO_PRIDE
environment variable.