From 662a5bf081676752522a56da6e70b6fb1a693b11 Mon Sep 17 00:00:00 2001 From: abdfnx Date: Mon, 9 Aug 2021 11:20:55 +0300 Subject: [PATCH] create a test release `v0.1.43` --- go.mod | 1 - v_checker.go | 32 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/go.mod b/go.mod index ef7e473..1cb0956 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,5 @@ go 1.13 require ( github.com/briandowns/spinner v1.16.0 - github.com/scmn-dev/secman v0.0.0-20210507183205-8a23a96e5322 github.com/abdfnx/shell v0.3.15 ) diff --git a/v_checker.go b/v_checker.go index 867d0eb..4f93cec 100644 --- a/v_checker.go +++ b/v_checker.go @@ -1,13 +1,13 @@ package checker import ( - "fmt" - "log" + // "fmt" + // "log" "time" - "runtime" - "github.com/abdfnx/shell" + // "runtime" + // "github.com/abdfnx/shell" "github.com/briandowns/spinner" - commands "github.com/scmn-dev/secman/tools/constants" + // commands "github.com/scmn-dev/secman/tools/constants" ) func Checker() { @@ -15,19 +15,19 @@ func Checker() { s.Suffix = " 🔍 Checking for updates..." s.Start() - err, out, errout := shell.ShellOut("") + // err, out, errout := shell.ShellOut("") - if runtime.GOOS == "windows" { - err, out, errout = shell.PWSLOut(commands.Check_w()) - } else { - err, out, errout = shell.ShellOut(commands.Check_ml()) - } + // if runtime.GOOS == "windows" { + // err, out, errout = shell.PWSLOut(commands.Check_w()) + // } else { + // err, out, errout = shell.ShellOut(commands.Check_ml()) + // } - if err != nil { - log.Printf("error: %v\n", err) - fmt.Print(errout) - } + // if err != nil { + // log.Printf("error: %v\n", err) + // fmt.Print(errout) + // } s.Stop() - fmt.Print(out) + // fmt.Print(out) }