splunk / contentctl

Splunk Content Control Tool
Apache License 2.0
88 stars 23 forks source link

Add a launcher to contentctl.py to allow easier debugging and launchi… #212

Closed Res260 closed 2 months ago

Res260 commented 2 months ago

Add a launcher to contentctl.py to allow easier debugging and launching with python -m contentctl.contentctl

pyth0n1c commented 2 months ago

For awareness of anything else looking at the PR, this addition means that you can do things like

python -m contentctl.contentctl validate
python -m contentctl.contentctl test --post-test-behavior always_pause mode:all

which is convenient, because you do not need to poetry install / poetry shell or pip install contentctl to run the tool as long as you have the requirements met.

Res260 commented 2 months ago

Yes and it also allows to put breakpoints in IDEs like pycharm and VS code (idk if there is another way but its usually how I do it haha)