Massive refactor (Zed wouldn't stop complaining about formatting) and

beginning of proper GNOME implementation.
This commit is contained in:
2026-08-15 23:56:17 +12:00
parent a4aa721a59
commit 19b7b89453
15 changed files with 346 additions and 148 deletions
+6 -2
View File
@@ -1,23 +1,27 @@
from enum import IntEnum, StrEnum
import pathlib
from enum import IntEnum, StrEnum
class Config(StrEnum):
CONFIG_DIR_NAME = ".sunshine-snake-glue"
PREVIOUS_MODE_FILE = "previous_mode"
GEN_SCRIPT_FILE = "script.sh"
CONFIG_DIR = pathlib.Path.home() / Config.CONFIG_DIR_NAME
PREVIOUS_MODE_PATH = CONFIG_DIR / Config.PREVIOUS_MODE_FILE
GEN_SCRIPT_PATH = CONFIG_DIR / Config.GEN_SCRIPT_FILE
class Arguments(IntEnum):
SCRIPT_NAME = 0
INSTRUCTION = 1
CONNECTOR = 2
TEMPLATE = 3
class Instructions(StrEnum):
SET = "set"
RESET = "reset"
CREATE = "create"
CREATE = "create"