Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly support reading from stdin (#307)
* Adjust cli when reading from stdin. Bind reading from stdin on specifying `-i -`. This is part of [`argparse.FileType`](https://docs.python.org/3/library/argparse.html?highlight=pseudo-argument#argparse.FileType). Local tests under the following conditions: * implicit reading `poetry.lock` using args `-p -o -` * explicit reading `poetry.lock` using args `-p -i poetry.lock -o -` * explicit reading `poetry.lock` file after renaming using `cat p.lock | python -m cyclonedx_py.client -p -i - -o -` Signed-off-by: Theodor van Nahl <theo@van-nahl.org>
- Loading branch information