change name

This commit is contained in:
endigma 2021-02-08 22:17:19 -04:00
parent 6000a0ce74
commit 00c3f07135
6 changed files with 15 additions and 15 deletions

2
.gitignore vendored
View File

@ -6,7 +6,7 @@
*.so
*.dylib
r2go
risk
main
# Test binary, built with `go test -c`

View File

@ -5,7 +5,7 @@ import (
"fmt"
"io/ioutil"
"os"
"r2go/utils"
"risk/utils"
"time"
"github.com/lithammer/fuzzysearch/fuzzy"

View File

@ -2,8 +2,8 @@ package cli
import (
"fmt"
"r2go/tools"
"r2go/utils"
"risk/tools"
"risk/utils"
"github.com/fatih/color"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module r2go
module risk
go 1.15

16
main.go
View File

@ -5,10 +5,10 @@ import (
"io/ioutil"
"log"
"os"
"r2go/api"
"r2go/cli"
"r2go/tools"
"r2go/utils"
"risk/api"
"risk/cli"
"risk/tools"
"risk/utils"
"strings"
"github.com/fatih/color"
@ -16,7 +16,7 @@ import (
var version string = "0.0.1"
// Init starts the CLI frontend for r2go
// Init starts the CLI frontend for risk
func main() {
logFile, err := os.OpenFile(utils.SystemInfo.ProgDir+"/r2mod-go.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
utils.CheckErr(err)
@ -54,7 +54,7 @@ func main() {
case "info":
api.InitAPI()
if len(os.Args) <= 2 {
fmt.Println("Usage: r2go info <dependency string>")
fmt.Println("Usage: risk info <dependency string>")
} else {
status, selectedmod := api.GetModData(os.Args[2])
if status != 0 {
@ -131,7 +131,7 @@ func main() {
case "filter":
fmt.Println(tools.ExposeModString(os.Args[2]))
case "version", "ver", "v":
color.Magenta("> r2go", version)
color.Magenta("> risk", version)
fmt.Println(" > github.com/endigma442")
case "search", "s", "find":
api.InitAPI()
@ -147,6 +147,6 @@ func main() {
}
color.Green("> Complete!")
default:
fmt.Println("Unknown command, use 'r2go help' for a list of commands.")
fmt.Println("Unknown command, use 'risk help' for a list of commands.")
}
}

View File

@ -4,9 +4,9 @@ import (
"io/ioutil"
"log"
"os"
"r2go/api"
"r2go/utils"
"regexp"
"risk/api"
"risk/utils"
"strings"
)