File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1517var (
@@ -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
136138func handlePush (configs []config.Config ) int {
137- push (configs )
139+ pushop . Push (configs )
138140 printSuccess ("Configurations pushed successfully" )
139141 return 0
140142}
You can’t perform that action at this time.
0 commit comments