aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2015-10-08 16:58:25 +1000
committerGravatar alecdwm 2015-10-08 17:11:51 +1000
commit7f753bedfc23a6bbfce06592283fb4166eb2bfae (patch)
treed546ed936b861b12bb6dc2b4548fc569b4f48355
parentb05838337b8963ec7e18d439fe9e87156dfeadf2 (diff)
Improved CLI aesthetics
-rw-r--r--lib/gogetme.go2
-rw-r--r--main.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gogetme.go b/lib/gogetme.go
index ee2848c..d520c87 100644
--- a/lib/gogetme.go
+++ b/lib/gogetme.go
@@ -214,7 +214,7 @@ func Serve(customUrl, githubUser, listenPort string) {
})
// Listen and SERVE!
- fmt.Print("\nHandling connections:\n")
+ fmt.Print("Handling connections:\n")
err := http.ListenAndServe(listenPort, nil)
handleError("Serving HTTP requests", err)
}
diff --git a/main.go b/main.go
index d48849a..ff26f2d 100644
--- a/main.go
+++ b/main.go
@@ -28,7 +28,7 @@ import (
func checkVarPromptUnset(promptVar *string, promptDesc string) {
if *promptVar == "unset" {
- fmt.Printf("\n%s > ", promptDesc)
+ fmt.Printf("%s > ", promptDesc)
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil {
@@ -38,7 +38,7 @@ func checkVarPromptUnset(promptVar *string, promptDesc string) {
*promptVar = strings.Trim(input, "\n")
}
- fmt.Printf("\n%s set to '%s'\n", promptDesc, *promptVar)
+ fmt.Printf("%s set to '%s'\n", promptDesc, *promptVar)
}
func main() {