From 747e9c384abeea6a2f9e57f7c3cc99ccd0d9dfc7 Mon Sep 17 00:00:00 2001 From: kraanzu Date: Tue, 6 Feb 2024 08:22:53 +0530 Subject: [PATCH] cleanup: remove unused file --- smassh/__init__.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 smassh/__init__.py diff --git a/smassh/__init__.py b/smassh/__init__.py deleted file mode 100644 index fa2a1003..00000000 --- a/smassh/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -from importlib.metadata import version as pkgVersion -import click -from smassh.src.plugins.add_language import AddLanguage -from smassh.ui.tui import Smassh - - -@click.group( - context_settings={"help_option_names": ["-h", "--help"]}, - invoke_without_command=True, -) -@click.option( - "--version", - "-v", - is_flag=True, - help="Show version and exit.", -) -@click.pass_context -def main(ctx, version: bool) -> None: - if version: - return print(f"smassh - v{pkgVersion('smassh')}") - - if ctx.invoked_subcommand is None: - Smassh().run() - - -@main.command(help="Add a language to smassh") -@click.argument("name") -def add(name: str) -> None: - AddLanguage().add(name)