forked from block/goose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .gooseignore file to restrict access to files or paths
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).
- Loading branch information
1 parent
ec0e87f
commit b8e14d0
Showing
4 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Ignore environment files | ||
.env | ||
|
||
# Ignore sensitive configuration files | ||
config/secrets.yaml | ||
|
||
# Ignore all files in the private directory | ||
private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters