summaryrefslogtreecommitdiff
path: root/src/caelestia/subcommands
diff options
context:
space:
mode:
Diffstat (limited to 'src/caelestia/subcommands')
-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)