Skip to content

Commit 847345b

Browse files
committed
Add: Enable to run cli as flomutils command
1 parent b7fe04c commit 847345b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

flomutils/__main__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
from flomutils import cli
44

5-
if __name__ == '__main__':
5+
def main():
66
fire.Fire(cli)
7+
8+
if __name__ == '__main__':
9+
main()

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ autopep8 = "^1.4"
1919
[build-system]
2020
requires = ["poetry>=0.12"]
2121
build-backend = "poetry.masonry.api"
22+
23+
[tool.poetry.scripts]
24+
flomutils = 'flomutils.__main__:main'

0 commit comments

Comments
 (0)