Skip to content

Commit b248b8a

Browse files
committed
chore: Refactor CLI structure and introduce new commands
1 parent cc0f7aa commit b248b8a

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

struct_module/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def main():
2727
# Create subparsers
2828
subparsers = parser.add_subparsers()
2929

30-
3130
InfoCommand(subparsers.add_parser('info', help='Show information about the package'))
3231
ValidateCommand(subparsers.add_parser('validate', help='Validate the YAML configuration file'))
3332
GenerateCommand(subparsers.add_parser('generate', help='Generate the project structure'))
33+
3434
args = parser.parse_args()
3535

3636
# Check if a subcommand was provided

struct_module/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
import logging
2-
import os
3-
from .file_item import FileItem
4-
from dotenv import load_dotenv
51
import yaml
62

7-
load_dotenv()
8-
9-
openai_api_key = os.getenv("OPENAI_API_KEY")
10-
openai_model = os.getenv("OPENAI_MODEL")
11-
12-
13-
14-
15-
16-
17-
183

194
def read_config_file(file_path):
205
with open(file_path, 'r') as f:

0 commit comments

Comments
 (0)