From 3b5aa9593806db388af4a7436698b1babe5462aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Fri, 26 Oct 2018 00:07:17 +0200 Subject: implement my review requests --- up.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/up.go b/up.go index 498e758..0b7d1ca 100644 --- a/up.go +++ b/up.go @@ -29,10 +29,9 @@ import ( "os/exec" "sync" - flag "github.com/spf13/pflag" - "github.com/gdamore/tcell" "github.com/mattn/go-isatty" + "github.com/spf13/pflag" ) // TODO: some key shortcut to increase stdin capture buffer size (unless EOF already reached) @@ -63,14 +62,13 @@ import ( // TODO: [LATER] make it more friendly to infrequent Linux users by providing "descriptive" commands like "search" etc. // TODO: [LATER] advertise on: HN, r/programming, r/golang, r/commandline, r/linux, up-for-grabs.net; data exploration? data science? -// Flag Settings var ( - debugMode = flag.Bool("debug", false, "debug mode") + debugMode = pflag.Bool("debug", false, "debug mode") ) func main() { // Handle command-line flags - flag.Parse() + pflag.Parse() log.SetOutput(ioutil.Discard) if *debugMode { -- cgit v1.2.3