From 3bf0c57db212f97ddd1c208419b80089e1b66200 Mon Sep 17 00:00:00 2001 From: Ljzd-PRO <63289359+Ljzd-PRO@users.noreply.github.com> Date: Sat, 26 Oct 2024 09:11:04 +0800 Subject: [PATCH] Revert "refactor: remove unnecessary async" This reverts commit cc994b2c1884d7b8c4fef4186ec9faecd135a40e. --- ktoolbox/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ktoolbox/cli.py b/ktoolbox/cli.py index 0fc8e32..044cd4a 100644 --- a/ktoolbox/cli.py +++ b/ktoolbox/cli.py @@ -22,7 +22,7 @@ class KToolBoxCli: @staticmethod - def version(): + async def version(): """Show KToolBox version""" return __version__ @@ -35,7 +35,7 @@ async def site_version(): return ret.data if ret else ret.message @staticmethod - def config_editor(): + async def config_editor(): """Launch graphical KToolBox configuration editor""" try: from ktoolbox.editor import run_config_editor @@ -48,7 +48,7 @@ def config_editor(): ) @staticmethod - def example_env(): + async def example_env(): """Generate an example configuration ``.env`` file.""" print( render(