summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-22 22:37:51 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-22 22:37:51 -0800
commitb262d2a5474138cbe8bdc872db5b6f56d8cc89af (patch)
treeb7fb024dc06fc80688b76a605a8d6f4ea3b4d266
parentc716a843923a4b87df40c0dbd8d9d7828dc9111c (diff)
Removed updating related stuff from main
-rw-r--r--gotop.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/gotop.go b/gotop.go
index b8abca4..fd9d1cb 100644
--- a/gotop.go
+++ b/gotop.go
@@ -3,7 +3,6 @@ package main
import (
"fmt"
"os"
- // "os/exec"
"os/signal"
"syscall"
"time"
@@ -45,7 +44,6 @@ Usage: gotop [options]
Options:
-c, --color <name> Set a colorscheme.
-h, --help Show this screen.
- -u, --upgrade Updates gotop if needed.
-v, --version Show version.
Colorschemes:
@@ -56,22 +54,11 @@ Colorschemes:
args, _ := docopt.ParseArgs(usage, os.Args[1:], VERSION)
- if val, _ := args["--upgrade"]; val.(bool) {
- updateGotop()
- os.Exit(0)
- }
-
if val, _ := args["--color"]; val != nil {
handleColorscheme(val.(string))
}
}
-func updateGotop() {
- // cmd := exec.Command("sleep", "1")
- // cmd.Run()
- return
-}
-
func handleColorscheme(cs string) {
switch cs {
case "monokai":