Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to run main function as a python function #190

Closed
oleksandrk-dev opened this issue May 20, 2021 · 2 comments · Fixed by #218
Closed

Possibility to run main function as a python function #190

oleksandrk-dev opened this issue May 20, 2021 · 2 comments · Fixed by #218
Labels

Comments

@oleksandrk-dev
Copy link

oleksandrk-dev commented May 20, 2021

Problem

At the moment to run addonfactory-ucc-generator from a python file we need to create a subprocess

subprocess.run(["ucc-gen", "arguments go here"], env=os.environ)

Which makes it harder to debug and catch errors.

Possible solution

What about creating another function called main_with_args which we will be able to normally use in python code, e.g.


from splunk_add_on_ucc_framework import main_with_args

main_with_args(source="..", ....)

@ghost
Copy link

ghost commented Jun 7, 2021

@ghost ghost self-assigned this Jun 7, 2021
@ghost ghost mentioned this issue Jun 8, 2021
@ryanfaircloth
Copy link
Contributor

🎉 This issue has been resolved in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants