From 5066cc609d013370e23d2b9a1abaf1434d7f5100 Mon Sep 17 00:00:00 2001 From: kadirnar Date: Thu, 9 May 2024 16:32:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=A0=20Add=20CLI=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 1 + whisperplus/cli.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 whisperplus/cli.py diff --git a/requirements.txt b/requirements.txt index b469769..657f005 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ hqq ffmpeg ffmpeg-python pre-commit +fire diff --git a/whisperplus/cli.py b/whisperplus/cli.py new file mode 100644 index 0000000..7f5f33d --- /dev/null +++ b/whisperplus/cli.py @@ -0,0 +1,13 @@ +from fire import Fire + +from whisperplus import __version__ as whisperplus_version + +whisperplus_app = {"version": whisperplus_version} + + +def app(): + Fire(whisperplus_app) + + +if __name__ == "__main__": + app()