goose icon indicating copy to clipboard operation
goose copied to clipboard

feat: add goose info command to display directories in use + config

Open kalvinnchau opened this issue 1 year ago • 1 comments

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

kalvinnchau avatar Feb 14 '25 18:02 kalvinnchau

PR Preview Action v1.6.0 :---: |

:rocket: 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.

github-actions[bot] avatar Feb 14 '25 18:02 github-actions[bot]