1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Added entrypoint for Gateway Shell

This commit is contained in:
samson0v
2023-01-24 18:35:05 +02:00
parent 584a705c2b
commit 08a68abef7
2 changed files with 7 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ setup(
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',
@@ -72,6 +72,7 @@ setup(
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'
]
})

View File

@@ -211,5 +211,9 @@ class Shell(cmd.Cmd, Thread):
return self.do_exit(args)
def main():
Shell()
if __name__ == '__main__':
shell = Shell()