I am just looking at the examples and I dont see m...
# ask-community
f
I am just looking at the examples and I dont see many that have a main function. Is there a reason why they are not used?
if __name__ == "__main__":
k
Hey, there no reason and you’re welcome to for sure. A common approach is
Copy code
if __name__ == "__main__":
    flow.run()
upvote 1
And then registering with the CLI like
prefect register xxx
f
Cool thanks! (that was an easy one 😄 )
😆 1
j
@Kevin Kho Once again having all the answers, this is exactly what I was looking for !