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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add version options #74

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Conversation

lamchau
Copy link
Collaborator

@lamchau lamchau commented Sep 18, 2024

  • replace legacy Dict with buitin dict for python >= 3.9+ / PEP585
  • add -V / --version flags to match other cli tools
    • chose -V since many applications use -v as --verbose, which may be useful if we add debug logging

Test + Example outputs

$ uv run goose version
Goose-ai: 0.9.0
Plugins:
  Module: ai-exchange, Version: 0.9.0

$ uv run goose --version
Goose-ai: 0.9.0
Plugins:
  Module: ai-exchange, Version: 0.9.0

$ uv run goose -V
Goose-ai: 0.9.0
Plugins:
  Module: ai-exchange, Version: 0.9.0
$ uv --version
uv 0.3.3 (deea6025a 2024-08-23)

$ uv -V
uv 0.3.3 (deea6025a 2024-08-23)

$ uv version
uv 0.3.3 (deea6025a 2024-08-23)
$ git --version
git version 2.45.2

$ git -v
git version 2.45.2

$ git version
git version 2.45.2

@lamchau lamchau changed the title add version options and update types for python 3.9+ feat: add version options Sep 18, 2024
Copy link
Contributor

@lukealvoeiro lukealvoeiro left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for the contribution!

src/goose/cli/main.py Outdated Show resolved Hide resolved
@michaelneale michaelneale merged commit 4ea82e8 into block:main Sep 19, 2024
3 checks passed
@lamchau lamchau deleted the lam/add-version-option branch September 19, 2024 06:59
lifeizhou-ap added a commit that referenced this pull request Sep 20, 2024
* main:
  feat: add version options (#74)
Kvadratni added a commit to Kvadratni/goose that referenced this pull request Sep 23, 2024
* origin/main:
  docs: add in ollama (block#82)
  chore: add just command for releasing goose (block#55)
  feat: support markdown plans  (block#79)
  feat: add version options (block#74)
  docs: fixing exchange url to public version (block#67)
  docs: Update CONTRIBUTING.md (block#69)
  chore: create mkdocs for goose (block#70)
  docs: fix broken link (block#71)
  feat: give commands the ability to execute logic (block#63)
  feat: jira toolkit (block#59)
  feat: run goose in a docker-style sandbox (block#44)
lily-de pushed a commit that referenced this pull request Oct 7, 2024
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.

3 participants