mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-20 07:50:00 -05:00
refactor: rename logging -> io + add more funcs
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user