Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
create a test release v0.1.43
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Aug 9, 2021
1 parent 3d85cff commit 662a5bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
32 changes: 16 additions & 16 deletions v_checker.go
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
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() {
s := spinner.New(spinner.CharSets[11], 100*time.Millisecond)
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)
}

0 comments on commit 662a5bf

Please sign in to comment.