From eb39d6b858781d57a5317f29432f62cb7d5d76ca Mon Sep 17 00:00:00 2001 From: Peder Hovdan Andresen <107681714+pederhan@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:13:38 +0100 Subject: [PATCH] chore: Remove unused bin/ scripts (#288) --- bin/zabbix-cli | 23 ----------------------- bin/zabbix-cli-bulk-execution | 23 ----------------------- bin/zabbix-cli-init | 23 ----------------------- 3 files changed, 69 deletions(-) delete mode 100755 bin/zabbix-cli delete mode 100755 bin/zabbix-cli-bulk-execution delete mode 100755 bin/zabbix-cli-init diff --git a/bin/zabbix-cli b/bin/zabbix-cli deleted file mode 100755 index 5d07ce6b..00000000 --- a/bin/zabbix-cli +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3.12 -"""Run script for pyinstaller. - -Create a standalone executable as: - -pyinstaller --name zabbix-cli bin/zabbix-cli -F --hidden-import=zabbix_cli.app - -The finished binary will be in the `dist` directory. - -The hidden import is required to include the host submodules in the executable, -due to using dynamic imports. -""" - -from __future__ import annotations - -import re -import sys - -from zabbix_cli.main import main - -if __name__ == "__main__": - sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) - sys.exit(main()) diff --git a/bin/zabbix-cli-bulk-execution b/bin/zabbix-cli-bulk-execution deleted file mode 100755 index e643e6b8..00000000 --- a/bin/zabbix-cli-bulk-execution +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3.12 -"""Run script for pyinstaller. - -Create a standalone executable as: - -pyinstaller --name zabbix-cli-bulk-execution bin/zabbix-cli-bulk-execution -F - -The finished binary will be in the `dist` directory. - -The hidden import is required to include the host submodules in the executable, -due to using dynamic imports. -""" - -from __future__ import annotations - -import re -import sys - -from zabbix_cli.scripts.bulk_execution import main - -if __name__ == "__main__": - sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) - sys.exit(main()) diff --git a/bin/zabbix-cli-init b/bin/zabbix-cli-init deleted file mode 100755 index 11f90e19..00000000 --- a/bin/zabbix-cli-init +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3.12 -"""Run script for pyinstaller. - -Create a standalone executable as: - -pyinstaller --name zabbix-cli-init bin/zabbix-cli-init -F - -The finished binary will be in the `dist` directory. - -The hidden import is required to include the host submodules in the executable, -due to using dynamic imports. -""" - -from __future__ import annotations - -import re -import sys - -from zabbix_cli.scripts.init import main - -if __name__ == "__main__": - sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) - sys.exit(main())