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

Display deprecation message when run from command line #593

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

mentatai[bot]
Copy link
Contributor

@mentatai mentatai bot commented Jan 7, 2025

When the old CLI version is run, display a message informing users that this project is deprecated and directing them to mentat.ai for the current version of Mentat.

Closes #592

🤖 See my steps and track the cost of the PR here

When the old CLI version is run, display a message informing users that this project is deprecated and directing them to mentat.ai for the current version of Mentat.

Closes #592
@mentatai mentatai bot requested a review from biobootloader January 7, 2025 22:29
Copy link
Contributor Author

@mentatai mentatai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've modified the run_cli() function to display a deprecation message instead of starting the terminal client. When users try to run the old CLI version, they'll now see:

  1. A clear warning that this version is deprecated
  2. Information about the new Mentat project
  3. A link to mentat.ai where they can find the current version
  4. A reference to @AbanteAI on Twitter for questions

The program exits with status code 1 to indicate this is an error condition, which should help prevent any scripts from silently continuing with the deprecated version.

Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
You can change my review settings on my settings page.

@biobootloader biobootloader merged commit 13a4c51 into main Jan 7, 2025
6 of 16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when run on command line, just display message that this project is deprecated and link to mentat.ai
1 participant