diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-09 22:15:03 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-09 22:15:03 +1000 |
| commit | 52dfdb97ecad6c1a9bab3dfdb9996557e77a0a1e (patch) | |
| tree | 343af728bb217145d7bae4419e016ef2b98c25f6 /src/subcommands/variant.py | |
| parent | parser: add func to run with args (diff) | |
| download | caelestia-cli-52dfdb97ecad6c1a9bab3dfdb9996557e77a0a1e.tar.gz caelestia-cli-52dfdb97ecad6c1a9bab3dfdb9996557e77a0a1e.tar.bz2 caelestia-cli-52dfdb97ecad6c1a9bab3dfdb9996557e77a0a1e.zip | |
feat: add shell commands
Also switch to classes
Diffstat (limited to 'src/subcommands/variant.py')
| -rw-r--r-- | src/subcommands/variant.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/subcommands/variant.py b/src/subcommands/variant.py index a94f3d0..37f9a2b 100644 --- a/src/subcommands/variant.py +++ b/src/subcommands/variant.py @@ -1,5 +1,11 @@ from argparse import Namespace -def run(args: Namespace) -> None: - pass +class Command: + args: Namespace + + def __init__(self, args: Namespace) -> None: + self.args = args + + def run(self) -> None: + pass |