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:
@@ -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)
|
||||
send_cmd(args.command, CONFIG.socket_path, args.preset)
|
Reference in New Issue
Block a user