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:
5
setup.py
5
setup.py
@@ -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'
|
||||
]
|
||||
})
|
||||
|
||||
@@ -211,5 +211,9 @@ class Shell(cmd.Cmd, Thread):
|
||||
return self.do_exit(args)
|
||||
|
||||
|
||||
def main():
|
||||
Shell()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
shell = Shell()
|
||||
|
||||
Reference in New Issue
Block a user