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

Add .gooseignore file to restrict access to files or paths #1116

Closed
wants to merge 1 commit into from

Conversation

jasonkneen
Copy link

@jasonkneen jasonkneen commented Feb 6, 2025

Fixes #1065

Add support for restricting access to files or paths using a .gooseignore file.

  • crates/goose-cli/src/commands/configure.rs

    • Add logic to read the .gooseignore file and restrict access to specified files and paths.
    • Update the handle_configure function to include the .gooseignore file handling.
    • Ensure the .gooseignore file is read and applied during the configuration process.
  • crates/goose/src/config/extensions.rs

    • Add logic to handle the .gooseignore file in the ExtensionManager.
    • Update the get_config function to include the .gooseignore file handling.
    • Ensure the .gooseignore file is read and applied when getting extension configurations.
  • documentation/docs/guides/file-management.md

    • Add instructions on how to use the .gooseignore file.
    • Include examples of how to specify files and paths to be ignored.
    • Update the documentation to reflect the new feature of restricting access to files or paths.
  • .gooseignore

    • Add a new .gooseignore file in the root directory.
    • Include examples of files and paths to be ignored.
    • Ensure the .gooseignore file is properly formatted and documented.

For more details, open the Copilot Workspace session.

Fixes block#1065

Add support for restricting access to files or paths using a `.gooseignore` file.

* **`crates/goose-cli/src/commands/configure.rs`**
  - Add logic to read the `.gooseignore` file and restrict access to specified files and paths.
  - Update the `handle_configure` function to include the `.gooseignore` file handling.
  - Ensure the `.gooseignore` file is read and applied during the configuration process.

* **`crates/goose/src/config/extensions.rs`**
  - Add logic to handle the `.gooseignore` file in the `ExtensionManager`.
  - Update the `get_config` function to include the `.gooseignore` file handling.
  - Ensure the `.gooseignore` file is read and applied when getting extension configurations.

* **`documentation/docs/guides/file-management.md`**
  - Add instructions on how to use the `.gooseignore` file.
  - Include examples of how to specify files and paths to be ignored.
  - Update the documentation to reflect the new feature of restricting access to files or paths.

* **`.gooseignore`**
  - Add a new `.gooseignore` file in the root directory.
  - Include examples of files and paths to be ignored.
  - Ensure the `.gooseignore` file is properly formatted and documented.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1065?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Restrict access to files or paths
2 participants