Skip to content

Commit e3228bd

Browse files
committed
Add import for main.go
1 parent c95ea23 commit e3228bd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"github.com/fatih/color"
1111
"github.com/fumiya-kume/mdefaults/internal/config"
1212
"github.com/fumiya-kume/mdefaults/internal/filesystem"
13+
pullop "github.com/fumiya-kume/mdefaults/internal/operation/pull"
14+
pushop "github.com/fumiya-kume/mdefaults/internal/operation/push"
1315
)
1416

1517
var (
@@ -71,7 +73,7 @@ func run() int {
7173
fmt.Println("Current Configuration:")
7274
printConfigs(configs)
7375
fmt.Println("macOS Configuration:")
74-
macOSConfigs, err := pull(configs)
76+
macOSConfigs, err := pullop.Pull(configs)
7577
if err != nil {
7678
printError("Failed to pull configurations")
7779
return 1
@@ -134,7 +136,7 @@ func printSuccess(message string) {
134136
}
135137

136138
func handlePush(configs []config.Config) int {
137-
push(configs)
139+
pushop.Push(configs)
138140
printSuccess("Configurations pushed successfully")
139141
return 0
140142
}

0 commit comments

Comments
 (0)