From 7059ebda4c79983df941aab851df606da77f40a5 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Mon, 5 May 2025 12:02:51 +0200 Subject: [PATCH] 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. --- src/pyvtt/send_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyvtt/send_cmd.py b/src/pyvtt/send_cmd.py index debf045..c94d55f 100755 --- a/src/pyvtt/send_cmd.py +++ b/src/pyvtt/send_cmd.py @@ -4,7 +4,7 @@ import argparse from pyvtt.configuration import read_configurations from typing import Optional -CONFIGURATION = read_configurations() +CONFIG = read_configurations() def send_cmd(cmd: str, socket_path: str, preset: Optional[str] = None) -> None: @@ -62,4 +62,4 @@ def main(): args = parser.parse_args() - send_cmd(args.command, CONFIGURATION["socket_path"], args.preset) \ No newline at end of file + send_cmd(args.command, CONFIG.socket_path, args.preset) \ No newline at end of file