codedthemes-cli 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/PKG-INFO +1 -1
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/cli.py +14 -1
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/PKG-INFO +1 -1
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/pyproject.toml +1 -1
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/README.md +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/__init__.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/config.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/mcp_client.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/patch_utils.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/repo_utils.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes/sync_manager.py +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/SOURCES.txt +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/dependency_links.txt +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/entry_points.txt +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/requires.txt +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/top_level.txt +0 -0
- {codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/setup.cfg +0 -0
|
@@ -304,8 +304,17 @@ def handle_apply(query: str):
|
|
|
304
304
|
|
|
305
305
|
|
|
306
306
|
def main():
|
|
307
|
+
try:
|
|
308
|
+
from importlib.metadata import version
|
|
309
|
+
__version__ = version("codedthemes-cli")
|
|
310
|
+
except Exception:
|
|
311
|
+
__version__ = "unknown"
|
|
312
|
+
|
|
307
313
|
parser = argparse.ArgumentParser(prog="codedthemes", description="CodedThemes CLI client")
|
|
308
|
-
|
|
314
|
+
parser.add_argument("-v", "--version", action="version", version=f"%(prog)s {__version__}")
|
|
315
|
+
|
|
316
|
+
subparsers = parser.add_subparsers(dest="command", required=False) # Changed to False to allow --version to work alone
|
|
317
|
+
|
|
309
318
|
|
|
310
319
|
login_parser = subparsers.add_parser("login", help="Login to MCP server")
|
|
311
320
|
login_parser.add_argument("--server", help="MCP server URL")
|
|
@@ -317,6 +326,10 @@ def main():
|
|
|
317
326
|
|
|
318
327
|
args = parser.parse_args()
|
|
319
328
|
|
|
329
|
+
if not args.command:
|
|
330
|
+
parser.print_help()
|
|
331
|
+
sys.exit(0)
|
|
332
|
+
|
|
320
333
|
if args.command == "login":
|
|
321
334
|
handle_login(args.server)
|
|
322
335
|
elif args.command == "init":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codedthemes_cli-0.1.2 → codedthemes_cli-0.1.3}/codedthemes_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|