Please improve the file-saving aspect of the dotfiles pull command.
The entry for the dotfiles pull command is located in commands/dotfiles_pull.go#L14, while the file-saving functionality can be found in main/model/dotfile_apps.go#L211.
In the file-saving section, you don't need to call the IsEqual check first, as it will be guarded before the save method is invoked.
Additionally, in the file-saving part, you should check the differences first using https://github.com/sergi/go-diff and only apply the changes to the current file.
Please improve the file-saving aspect of the
dotfiles pullcommand.The entry for the
dotfiles pullcommand is located incommands/dotfiles_pull.go#L14, while the file-saving functionality can be found inmain/model/dotfile_apps.go#L211.In the file-saving section, you don't need to call the
IsEqualcheck first, as it will be guarded before the save method is invoked.Additionally, in the file-saving part, you should check the differences first using
https://github.com/sergi/go-diffand only apply the changes to the current file.