We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a58b9 commit 4610d37Copy full SHA for 4610d37
elasticgit/tools.py
@@ -38,6 +38,7 @@ def run(parser): # pragma: no cover
38
dispatcher = dispatcher_class()
39
dispatcher.run(**data)
40
41
-if __name__ == '__main__': # pragma: no cover
+
42
+def main(): # pragma: no cover
43
parser = get_parser()
44
run(parser)
scripts/eg-tools
setup.py
@@ -24,9 +24,11 @@
24
url='http://github.com/universalcore/elastic-git',
25
license='BSD',
26
keywords='git elasticsearch json',
27
- scripts=['scripts/eg-tools'],
28
packages=find_packages(),
29
include_package_data=True,
30
zip_safe=False,
31
install_requires=requires,
32
- tests_require=requires)
+ tests_require=requires,
+ entry_points={
33
+ 'console_scripts': ['eg-tools = elasticgit.tools:main'],
34
+ })
0 commit comments