Skip to content

Commit

Permalink
cmd color support
Browse files Browse the repository at this point in the history
  • Loading branch information
cipheras committed Oct 10, 2020
1 parent b26138e commit f455a4d
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 12 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ build:
clean:
@echo -ne "\n[+] Cleaning..."
@go clean
@sudo rm -rf ~/go/pkg/mod/github.com/cipheras
@rm -f ~/go/bin/$(TARGET)
# @rm -rf ./bin
rm $(TARGET)
@go clean -modcache
@echo $(STATUS)

# install: build
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/cipheras/loctrack

go 1.15

require github.com/cipheras/gohelper v1.3.0
require github.com/cipheras/gohelper v1.3.3
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ github.com/cipheras/gohelper v1.2.1 h1:jrg3r96+gL1XHWQs3q6wsBFKxEuTszHFZyjV5x7pk
github.com/cipheras/gohelper v1.2.1/go.mod h1:lI30pRBLe0eZMDV7CkH+QTinAouDb34tsa11D2pQ59w=
github.com/cipheras/gohelper v1.3.0 h1:Sakks5nQv3vxp4zDtWDKzNXf9PuGZJD2Ei//8FGonlg=
github.com/cipheras/gohelper v1.3.0/go.mod h1:LAdAhKloC2GntpxN9mRKANRL/4eo18cYxEgVgRzq9oQ=
github.com/cipheras/gohelper v1.3.3 h1:1avbgDPrJ4E+DEQSGZu4AXo5JJxruy1VY7yDLL7gLpU=
github.com/cipheras/gohelper v1.3.3/go.mod h1:LAdAhKloC2GntpxN9mRKANRL/4eo18cYxEgVgRzq9oQ=
golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634 h1:bNEHhJCnrwMKNMmOx3yAynp5vs5/gRy+XWFtZFu7NBM=
golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7 changes: 2 additions & 5 deletions loctrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"os/signal"
"reflect"
"regexp"
"runtime"
"strconv"
"syscall"
"time"
Expand All @@ -33,7 +32,7 @@ var url string

const (
// VERSION ...
VERSION = "2.4.0"
VERSION = "1.4.1"
)

func main() {
Expand All @@ -57,9 +56,7 @@ func main() {

interrupt()
banner()
if runtime.GOOS == "windows" {
Cwindows() //for colors on cmd in window
}
Cwindows() //for colors on cmd in window
Cprint(I, "Try"+GREEN+" loctrack -h "+BLUE+"for help and other options")
if *mantunnel {
Cprint(T, "You have chosen manual mode. Run your own tunnel.")
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/cipheras/gohelper/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 105 additions & 0 deletions vendor/github.com/cipheras/gohelper/linux_gohelper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# github.com/cipheras/gohelper v1.3.0
# github.com/cipheras/gohelper v1.3.3
## explicit
github.com/cipheras/gohelper
# golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634
Expand Down

0 comments on commit f455a4d

Please sign in to comment.