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 goose info command to display directories in use + config #1239

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

kalvinnchau
Copy link
Collaborator

add goose info [-v] to cli

adds the info [-v] command to print to the user goose's version, file location/dirs, and optionally full configuration (no secrets from keyring)

ex:

root@97b2604d5258:/ goose info -v
Goose Version:
  Version:          1.0.6

Goose Locations:
  Config file:      /root/.config/goose/config.yaml
  Sessions dir:     /root/.local/share/goose/sessions
  Logs dir:         /root/.local/share/goose/logs

# below only shows up with -v
Goose Configuration:
  extensions:
    developer:
      enabled: true
      name: developer
      type: builtin
  GOOSE_PROVIDER: openai
  GOOSE_MODEL: gpt-4o

and an example showing if users have XDG_ envvars set:

export XDG_CONFIG_HOME=/test
export XDG_DATA_HOME=/data

root@97b2604d5258:/ goose info
Goose Version:
  Version:          1.0.6

Goose Locations:
  Config file:      /test/goose/config.yaml
  Sessions dir:     /data/goose/sessions
  Logs dir:         /data/goose/logs

Copy link

PR Preview Action v1.6.0

🚀 View preview at
https://block.github.io/goose/pr-preview/pr-1239/

Built to branch gh-pages at 2025-02-14 18:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@kalvinnchau kalvinnchau requested a review from lily-de February 14, 2025 18:40
@kalvinnchau kalvinnchau merged commit b22af1d into main Feb 18, 2025
7 checks passed
@kalvinnchau kalvinnchau deleted the kalvin/goose-info branch February 18, 2025 18:29
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.

2 participants