Skip to content

Commit

Permalink
Rename "patches" module to "rm"
Browse files Browse the repository at this point in the history
Since we have moved away from patching the GNU "rm"
command, and moved to a custom Go implementation
the "patches" module is no longer semantically
correct.

To reflect this change in architecture, the "patches"
module is now named "rm"
  • Loading branch information
hudson-newey committed Dec 29, 2024
1 parent ca6ca92 commit af93e0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"hudson-newey/2rm/src/config"
"hudson-newey/2rm/src/models"
"hudson-newey/2rm/src/patches"
"hudson-newey/2rm/src/rm"
)

func main() {
Expand All @@ -26,5 +26,5 @@ func main() {
parsedConfig = config.ParseConfig(defaultConfigDirectory)
}

patches.RmPatch(originalArguments, parsedConfig)
rm.Execute(originalArguments, parsedConfig)
}
4 changes: 2 additions & 2 deletions src/patches/rm.go → src/rm/rm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package patches
package rm

import (
"fmt"
Expand All @@ -16,7 +16,7 @@ import (

const TRASH_DIR_PERMISSIONS = 0755

func RmPatch(arguments []string, config models.Config) {
func Execute(arguments []string, config models.Config) {
shouldNotify := util.InArray(arguments, cli.NOTIFICATION_CLA)

requestingHelp := util.InArray(arguments, cli.HELP_CLA)
Expand Down

0 comments on commit af93e0c

Please sign in to comment.