From 289fc024adaf89e48bad5e1bd251e13c92d3ae39 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 1 Dec 2023 20:49:24 +0800 Subject: [PATCH] fix: gen bug --- pyproject.toml | 2 +- src/pychassiscli/cli.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 74cd2a6..95b2a71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pychassiscli" -version = "0.3.6" +version = "0.3.7" description = "A lightweight Python distributed microservice command line tool" authors = [ { name = "BryantHe", email = "bryantsisu@qq.com" }, diff --git a/src/pychassiscli/cli.py b/src/pychassiscli/cli.py index 79b16ae..cadfcbe 100644 --- a/src/pychassiscli/cli.py +++ b/src/pychassiscli/cli.py @@ -69,6 +69,7 @@ def gen(directory, _type, nameko_module, class_name_str): # TODO input 让用户在命令行输入 pass generate_metric_config(nameko_module, class_name_str) + return if _type == 'unit_test': if not os.access(directory, os.F_OK) or not os.listdir(directory):