RunCommands
RunCommands is a preprocessor that allows to execute a sequence of arbitrary external commands.
Installation
$ pip install foliantcontrib.runcommands
Usage
To enable the preprocessor, add runcommands to preprocessors section in the project config, and specify the commands to run:
preprocessors:
- runcommands:
commands:
- ./build.sh
- echo "Hello World" > ${WORKING_DIR}/hello.txt
targets:
- pre
- tex
- pdf
- docx
commands
: Sequence of system commands to execute one after the other.
targets
: Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.
Supported environment variables
You may use the following environment variables in your commands:
${PROJECT_DIR}— full path to the project directory, e.g./usr/src/app;${SRC_DIR}— full path to the directory that contains Markdown sources, e.g./usr/src/app/src;${WORKING_DIR}— full path to the temporary directory that is used by preprocessors, e.g./usr/src/app/__folianttmp__;${BACKEND}— currently used backend, e.g.pre,pandoc, ormkdocs;${TARGET}— current target, e.g.site, orpdf.
Metadata
Release files for foliantcontrib.runcommands 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foliantcontrib.runcommands-1.0.1.tar.gz | 2.7 kB | Without provenance | Details for foliantcontrib.runcommands-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foliantcontrib.runcommands-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for foliantcontrib.runcommands-1.0.1-py3-none-any.whl |
Total release size: 6.5 kB
Release files / foliantcontrib.runcommands-1.0.1.tar.gz
| Download URL | foliantcontrib.runcommands-1.0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
562a95f1bc5404cf6238dcf44ef84bf212d0da455b9d180db44541529868b5da
|
|
BLAKE2b-256 checksum How to use checksums |
5a44d0da6d9721a47af9e51ed5e29a373217d6d0419e740c5793df8e5f97ac8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Release files / foliantcontrib.runcommands-1.0.1-py3-none-any.whl
| Download URL | foliantcontrib.runcommands-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daf6de0c4fb576039b6de93843b2e3e964dbf7c0056667fa894732f8d045db25
|
|
BLAKE2b-256 checksum How to use checksums |
e59b22d7e92133809a358571f7dffcde2858aec0894af899f653e83fce06bfc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Security for foliantcontrib.runcommands 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.