Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version command to CLI #348

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

whoabuddy
Copy link
Contributor

@whoabuddy whoabuddy commented Mar 14, 2024

I mentioned it in Discord then thought it'd be a fun one to tackle and learn a little more about contributing to Python projects.

Example usage:

$ crewai version
crewai version: 0.22.5
$ crewai version --tools
crewai version: 0.22.5
crewai tools version: 0.22.5

Help text:

$ crewai --help
Usage: crewai [OPTIONS] COMMAND [ARGS]...

  Top-level command group for crewai.

Options:
  --help  Show this message and exit.

Commands:
  create   Create a new crew.
  version  Show the installed version of crewai.
$ crewai version --help
Usage: crewai version [OPTIONS]

  Show the installed version of crewai.

Options:
  --tools  Show the installed version of crewai tools
  --help   Show this message and exit.

I added a test as well, lmk if anything else needs to be updated, didn't touch readme or docs as so many things are in motion 馃槈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant