-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance File System Operations (#33)
* feat: File System Operations changes * Update git-ai version in Cargo.lock and refactor install.rs Based only on the changes visible in the diff, this commit: - Updates the git-ai version from 0.2.56 to 0.2.57 in Cargo.lock - Removes the reference to 'ai::filesystem::Filesystem' and adds a reference to 'crate::filesystem::Filesystem' in 'install.rs' - Modifies the 'run' function to an 'install' function, taking a 'Filesystem' reference instead of creating a 'Filesystem' instance - Adjusts the 'bail' function call for an existing hook error, formatting the hook file path as italic - Alters how the hook file is symlinked to the hook binary file in 'install.rs' * Refactor filesystem usage and paths in install and reinstall modules Based solely on the changes visible in the diff, this commit: - Replaces `Filesystem::new()` instances with `fs = Filesystem::new()` in `reinstall.rs` and `install.rs`. - Changes function calls to `git_ai_hook_bin_path()` and `prepare_commit_msg_path()` instead of `hook_bin()` and `hook_file()`. - Modifies the import statement in `install.rs` from `crate::filesystem::Filesystem` to `ai::filesystem::Filesystem`. - Adds a new code block in `install.rs` to create a git hooks path if it doesn't exist and run the install operation. - Adjusts the symlink creation in `reinstall.rs`, using `&hook_bin` instead of `hook_bin`. --------- Co-authored-by: Git AI Test <[email protected]>
- Loading branch information
Showing
4 changed files
with
158 additions
and
85 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
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