Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Display deprecation message when run from command line (#593)
Browse files Browse the repository at this point in the history
Co-authored-by: mentatai <[email protected]>
  • Loading branch information
mentatai[bot] and mentatai[bot] authored Jan 7, 2025
1 parent 901f072 commit 13a4c51
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions mentat/terminal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import asyncio
import logging
import sys
from asyncio import Event
from pathlib import Path
from typing import Any, Coroutine, List, Set
Expand Down Expand Up @@ -251,26 +252,10 @@ def get_parser():


def run_cli():
parser = get_parser()

args = parser.parse_args()

cwd = Path(args.cwd).expanduser().resolve()
paths = args.paths
exclude_paths = args.exclude
ignore_paths = args.ignore
diff = args.diff
pr_diff = args.pr_diff

config = Config.create(cwd, args)

terminal_client = TerminalClient(
cwd,
paths,
exclude_paths,
ignore_paths,
diff,
pr_diff,
config,
)
terminal_client.run()
print("\n⚠️ This version of Mentat is deprecated and no longer maintained ⚠️\n")
print("The name 'Mentat' is now used by a different project - an AI-powered GitHub bot")
print("that writes and reviews code.\n")
print("To use the current version of Mentat, please visit:")
print("https://mentat.ai\n")
print("For any questions, you can follow @AbanteAI on Twitter.")
sys.exit(1)

0 comments on commit 13a4c51

Please sign in to comment.