Skip to content

Commit

Permalink
Merge pull request #1047 from samson0v/master
Browse files Browse the repository at this point in the history
Added entrypoint for Gateway Shell
  • Loading branch information
imbeacon authored Jan 26, 2023
2 parents 584a705 + 08a68ab commit b125f74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
include_package_data=True,
python_requires=">=3.7",
packages=['thingsboard_gateway', 'thingsboard_gateway.gateway', 'thingsboard_gateway.gateway.proto', 'thingsboard_gateway.gateway.grpc_service',
'thingsboard_gateway.storage', 'thingsboard_gateway.storage.memory',
'thingsboard_gateway.storage', 'thingsboard_gateway.storage.memory', 'thingsboard_gateway.gateway.shell',
'thingsboard_gateway.storage.file', 'thingsboard_gateway.storage.sqlite',
'thingsboard_gateway.connectors', 'thingsboard_gateway.connectors.ble', 'thingsboard_gateway.connectors.socket',
'thingsboard_gateway.connectors.mqtt', 'thingsboard_gateway.connectors.opcua_asyncio', 'thingsboard_gateway.connectors.xmpp',
Expand Down Expand Up @@ -72,6 +72,7 @@
entry_points={
'console_scripts': [
'thingsboard-gateway = thingsboard_gateway.tb_gateway:daemon',
'tb-gateway-configurator = thingsboard_gateway.gateway.configuration_wizard:configure'
'tb-gateway-configurator = thingsboard_gateway.gateway.configuration_wizard:configure',
'tb-gateway-shell = thingsboard_gateway.gateway.shell:main'
]
})
4 changes: 4 additions & 0 deletions thingsboard_gateway/gateway/shell/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,9 @@ def do_EOF(self, args):
return self.do_exit(args)


def main():
Shell()


if __name__ == '__main__':
shell = Shell()

0 comments on commit b125f74

Please sign in to comment.