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

refactor: Use clap's built-in version command #1145

Merged
merged 3 commits into from
Feb 10, 2025
Merged

Conversation

xosnrdev
Copy link
Contributor

@xosnrdev xosnrdev commented Feb 7, 2025

closes #1144

Before:

/target/debug/goose -v
                                                                               
1.0.4

After:

./target/debug/goose -V                                                   

goose-cli 1.0.4

@salman1993
Copy link
Collaborator

salman1993 commented Feb 8, 2025

this is cleaner! i'd prefer not to show the goose-cli prefix

@xosnrdev
Copy link
Contributor Author

xosnrdev commented Feb 8, 2025

this is cleaner! i'd prefer not to show the goose-cli prefix

Resolved.

./target/debug/goose -h                                                             
An AI agent

Usage: goose [COMMAND]

Commands:
  configure  Configure Goose settings
  mcp        Run one of the mcp servers bundled with goose
  session    Start or resume interactive chat sessions [aliases: s]
  run        Execute commands from an instruction file or stdin
  agents     List available agent versions
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

./target/debug/goose -V                  
 1.0.5

@salman1993
Copy link
Collaborator

thanks for contributing! 🙏🏼

@salman1993 salman1993 merged commit 8b2b747 into block:main Feb 10, 2025
5 checks passed
@xosnrdev xosnrdev deleted the version branch February 10, 2025 17:37
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.

Simplify Version Handling with clap
2 participants