mirror of
https://github.com/ANG13T/SatIntel.git
synced 2025-12-05 20:40:09 -08:00
feat: change name to cli
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package osint
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/iskaa02/qalam/gradient"
|
||||
"github.com/TwiN/go-color"
|
||||
"strconv"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Option() {
|
||||
@@ -18,7 +19,7 @@ func Option() {
|
||||
Option()
|
||||
} else {
|
||||
if (num >= 0 && num < 5) {
|
||||
DisplayFunctions()
|
||||
DisplayFunctions(num)
|
||||
} else {
|
||||
fmt.Println(color.Ize(color.Red, " [!] INVALID INPUT"))
|
||||
Option()
|
||||
@@ -26,8 +27,11 @@ func Option() {
|
||||
}
|
||||
}
|
||||
|
||||
func DisplayFunctions() {
|
||||
fmt.Print("heh")
|
||||
func DisplayFunctions(x int) {
|
||||
if (x == 0) {
|
||||
fmt.Println(color.Ize(color.Blue, " Escaping Orbit..."))
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func Banner() {
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/ANG13T/SatIntel/osint"
|
||||
"github.com/ANG13T/SatIntel/cli"
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
@@ -21,7 +21,7 @@ Cobra is a CLI library for Go that empowers applications.
|
||||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
osint.SatIntel()
|
||||
cli.SatIntel()
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user