feat: impl scheme command (partial)

This commit is contained in:
2 * r + 2 * t
2025-06-11 18:07:34 +10:00
parent dc855e1b01
commit f43987ef2f
3 changed files with 18 additions and 2 deletions
+15 -1
View File
@@ -1,5 +1,7 @@
from argparse import Namespace
from caelestia.utils.scheme import get_scheme
class Command:
args: Namespace
@@ -8,4 +10,16 @@ class Command:
self.args = args
def run(self) -> None:
pass
scheme = get_scheme()
if self.args.random:
scheme.set_random()
elif self.args.name or self.args.flavour or self.args.mode:
if self.args.name:
scheme.name = self.args.name
if self.args.flavour:
scheme.flavour = self.args.flavour
if self.args.mode:
scheme.mode = self.args.mode
else:
print(scheme)