Skip to content

Commit

Permalink
Remove non necessary debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
victorboissiere committed May 26, 2018
1 parent 4bf7c12 commit 891c94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
)

func importConfigFiles(configFiles []ConfigFile) {
fmt.Println("[STEP][CONFIG_FILES]")

for _, configFile := range configFiles {
srcPath := getRepoFileURL(configFile.Src)
dstPath := resolveTilde(configFile.Dst)
Expand All @@ -29,13 +27,12 @@ func getPostInstallHelp(message string) string {

func installCommands(commands []string) {
for _, command := range commands {
fmt.Printf("[COMMAND] %s\n", command)
fmt.Printf("[STEP][COMMAND] %s\n", command)
execCommand(command)
}
}

func installSteps(steps []InstallStep) {
fmt.Println("[STEPS]")
for _, step := range steps {
fmt.Printf("[STEP] %s\n", step.Description)

Expand All @@ -45,7 +42,6 @@ func installSteps(steps []InstallStep) {
}

func installPrograms(programs []string) {
fmt.Println("[PROGRAMS]")
for _, program := range programs {
fmt.Printf("[PROGRAM] %s\n", strings.ToUpper(program))

Expand All @@ -66,12 +62,12 @@ func InstallConfig(config Config, installCommand string) {
installation := config[installCommand]

for _, dependency := range installation.Dependencies {
fmt.Printf("====> Installing dependency '%s'\n", dependency)
fmt.Printf("\n====> Installing dependency '%s'\n\n", dependency)
install(config[dependency])
postInstallHelp += getPostInstallHelp(config[dependency].AfterHelp)
}

fmt.Printf("====> Installing '%s'\n", installCommand)
fmt.Printf("\n====> Installing '%s'\n\n", installCommand)
install(installation)
fmt.Printf("%s%s", postInstallHelp, getPostInstallHelp(installation.AfterHelp))
}
2 changes: 1 addition & 1 deletion lifesaver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ func main() {
}

installer.InstallConfig(config, installCommand)
fmt.Println("\nDone! Thank you for using LifeSaver")
fmt.Println("\n\n\nDone! Thank you for using LifeSaver")
}

0 comments on commit 891c94a

Please sign in to comment.