Skip to content

Commit

Permalink
Remove cli.py, completion.py, lark.py, lark_doc.py, conftest.py, and …
Browse files Browse the repository at this point in the history
…test_cli.py; update .gitignore to exclude cli/__pycache__ and increment version to 0.1.3 in setup.py.
  • Loading branch information
atorber committed Jan 4, 2025
1 parent a1f81b7 commit 43d425d
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ omt.egg-info/*
.pytest_cache/*
.env
one_man_team.egg-info/*
cli/__pycache__/*
Empty file added cli/__init__.py
Empty file.
6 changes: 3 additions & 3 deletions cli.py → cli/cli.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import click
import os
from dotenv import load_dotenv, set_key
from lark import LarkAPI
from cli.lark import LarkAPI
import json
from pathlib import Path
from completion import completion
from cli.completion import completion
from tabulate import tabulate
import yaml
import shutil
Expand Down Expand Up @@ -51,7 +51,7 @@ def format_output(data, format=None):

@click.group()
def cli():
"""OMT - OpenMindTech CLI tool for Feishu/Lark"""
"""One Man Team CLI tool"""
pass

# Config 相关命令组
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lark_doc.py → cli/lark_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from lark_oapi.api.docx.v1 import *
from tabulate import tabulate
import time
from lark import LarkAPI
from cli.lark import LarkAPI
import yaml

# 引入环境变量
Expand Down
2 changes: 1 addition & 1 deletion test_cli.py → cli/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import pytest
from click.testing import CliRunner
from cli import cli
from cli.cli import cli

# 测试数据
TEST_DATA = {
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='one-man-team',
version='0.1.2',
version='0.1.3',
description='One Man Team CLI Tool',
long_description=open('README.md', 'r', encoding='utf-8').read(),
long_description_content_type='text/markdown',
Expand All @@ -20,7 +20,7 @@
],
entry_points={
'console_scripts': [
'omt=one_man_team.cli:cli',
'omt=cli.cli:cli',
],
},
extras_require={
Expand Down

0 comments on commit 43d425d

Please sign in to comment.