refactor(send_cmd): rename config variable for clarity

- Rename `CONFIGURATION` to `CONFIG` for consistency and brevity.
- Update method call to use dot notation for accessing `socket_path`.

Signed-off-by: Max P. <Mail@MPassarello.de>
This commit is contained in:
2025-05-05 12:02:51 +02:00
parent 46215a8aef
commit 7059ebda4c

View File

@@ -4,7 +4,7 @@ import argparse
from pyvtt.configuration import read_configurations from pyvtt.configuration import read_configurations
from typing import Optional from typing import Optional
CONFIGURATION = read_configurations() CONFIG = read_configurations()
def send_cmd(cmd: str, socket_path: str, preset: Optional[str] = None) -> None: def send_cmd(cmd: str, socket_path: str, preset: Optional[str] = None) -> None:
@@ -62,4 +62,4 @@ def main():
args = parser.parse_args() args = parser.parse_args()
send_cmd(args.command, CONFIGURATION["socket_path"], args.preset) send_cmd(args.command, CONFIG.socket_path, args.preset)