refactor: rename logging -> io + add more funcs

This commit is contained in:
2 * r + 2 * t
2026-06-13 00:44:08 +10:00
parent 3f3229aed4
commit c860b389c3
4 changed files with 62 additions and 25 deletions
+4 -2
View File
@@ -8,7 +8,8 @@ import tempfile
from pathlib import Path
from caelestia.utils.colour import get_dynamic_colours
from caelestia.utils.logging import log_exception
from caelestia.utils.hypr import is_lua_config
from caelestia.utils.io import log_exception
from caelestia.utils.paths import (
c_state_dir,
config_dir,
@@ -19,7 +20,6 @@ from caelestia.utils.paths import (
user_templates_dir,
)
from caelestia.utils.scheme import get_scheme
from caelestia.utils.hypr import is_lua_config
def gen_conf(colours: dict[str, str]) -> str:
@@ -28,6 +28,7 @@ def gen_conf(colours: dict[str, str]) -> str:
conf += f"${name} = {colour}\n"
return conf
def gen_lua(colours: dict[str, str]) -> str:
lua = "return {\n"
for name, colour in colours.items():
@@ -35,6 +36,7 @@ def gen_lua(colours: dict[str, str]) -> str:
lua += "}"
return lua
def gen_scss(colours: dict[str, str]) -> str:
scss = ""
for name, colour in colours.items():