working on ui
This commit is contained in:
parent
67f7a9b965
commit
cee7c087ba
3
main.go
3
main.go
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
@ -75,5 +76,5 @@ func getInput(prompt string) string {
|
||||||
reader := bufio.NewReader(os.Stdin)
|
reader := bufio.NewReader(os.Stdin)
|
||||||
fmt.Print(prompt)
|
fmt.Print(prompt)
|
||||||
text, _ := reader.ReadString('\n')
|
text, _ := reader.ReadString('\n')
|
||||||
return text
|
return strings.TrimSpace(text)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue