mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-08 00:09:29 -05:00
internal: refactor scheme
Also use a single file to store scheme data
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import subprocess
|
||||
from argparse import Namespace
|
||||
|
||||
from caelestia import data
|
||||
from caelestia.utils import paths
|
||||
|
||||
|
||||
class Command:
|
||||
@@ -25,7 +25,7 @@ class Command:
|
||||
self.shell()
|
||||
|
||||
def shell(self, *args: list[str]) -> str:
|
||||
return subprocess.check_output(["qs", "-p", data.c_data_dir / "shell", *args], text=True)
|
||||
return subprocess.check_output(["qs", "-p", paths.c_data_dir / "shell", *args], text=True)
|
||||
|
||||
def print_ipc(self) -> None:
|
||||
print(self.shell("ipc", "show"), end="")
|
||||
|
||||
Reference in New Issue
Block a user