Skip to content

Commit af93e0c

Browse files
committed
Rename "patches" module to "rm"
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"
1 parent ca6ca92 commit af93e0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"hudson-newey/2rm/src/config"
88
"hudson-newey/2rm/src/models"
9-
"hudson-newey/2rm/src/patches"
9+
"hudson-newey/2rm/src/rm"
1010
)
1111

1212
func main() {
@@ -26,5 +26,5 @@ func main() {
2626
parsedConfig = config.ParseConfig(defaultConfigDirectory)
2727
}
2828

29-
patches.RmPatch(originalArguments, parsedConfig)
29+
rm.Execute(originalArguments, parsedConfig)
3030
}

src/patches/rm.go renamed to src/rm/rm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package patches
1+
package rm
22

33
import (
44
"fmt"
@@ -16,7 +16,7 @@ import (
1616

1717
const TRASH_DIR_PERMISSIONS = 0755
1818

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

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

0 commit comments

Comments
 (0)