Skip to content

Commit

Permalink
add main entry point for package
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Dec 18, 2023
1 parent f032c59 commit c3f7b6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions arcaflow_plugin_template_python/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys
from arcaflow_plugin_template_python import plugin
from arcaflow_plugin_template_python import hello_world

if __name__ == "__main__":
sys.exit(
plugin.run(
plugin.build_schema(
# List your step functions here:
hello_world,
)
)
)

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import typing
from arcaflow_plugin_sdk import plugin
from arcaflow_schema_template_python.arcaflow_schema_template_python import (
from arcaflow_schema_template_python import (
InputParams,
SuccessOutput,
ErrorOutput,
Expand Down

0 comments on commit c3f7b6b

Please sign in to comment.