summaryrefslogtreecommitdiff
path: root/src/caelestia/subcommands/scheme.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-11 18:07:34 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-11 18:07:34 +1000
commitf43987ef2f55ede746c5cc37567f5e74ba515fb3 (patch)
tree7c12e3a4a27c0e1808e6827ef343d4a2e457e36a /src/caelestia/subcommands/scheme.py
parentinternal: refactor scheme (diff)
downloadcaelestia-cli-f43987ef2f55ede746c5cc37567f5e74ba515fb3.tar.gz
caelestia-cli-f43987ef2f55ede746c5cc37567f5e74ba515fb3.tar.bz2
caelestia-cli-f43987ef2f55ede746c5cc37567f5e74ba515fb3.zip
feat: impl scheme command (partial)
Diffstat (limited to 'src/caelestia/subcommands/scheme.py')
-rw-r--r--src/caelestia/subcommands/scheme.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/caelestia/subcommands/scheme.py b/src/caelestia/subcommands/scheme.py
index 37f9a2b..19e62db 100644
--- a/src/caelestia/subcommands/scheme.py
+++ b/src/caelestia/subcommands/scheme.py
@@ -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)