File: __init__.py

package info (click to toggle)
zabbix-cli 3.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,860 kB
  • sloc: python: 18,557; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 1,791 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from __future__ import annotations

from zabbix_cli.commands import bootstrap_commands  # type: ignore # noqa: E402, F401

from .app import *  # noqa: F403 # wildcard import to avoid circular import (why?)
from .app import StatefulApp  # explicit import for type checker

app = StatefulApp(
    name="zabbix-cli",
    help="Zabbix-CLI is a command line interface for Zabbix.",
    add_completion=True,
    rich_markup_mode="rich",
)

# Import commands to register them with the app
from zabbix_cli.commands import cli  # type: ignore # noqa: E402, F401, I001
from zabbix_cli.commands import export  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import host  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import host_interface  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import hostgroup  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import host_monitoring  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import item  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import macro  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import maintenance  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import media  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import problem  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import proxy  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import template  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import templategroup  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import user  # type: ignore # noqa: E402, F401
from zabbix_cli.commands import usergroup  # type: ignore # noqa: E402, F401


# Import dev commands
# TODO: Disable by default, enable with a flag.
bootstrap_commands()