feat: change name to cli

This commit is contained in:
angelina-tsuboi
2023-05-05 14:40:02 -07:00
parent 4af422e3f2
commit 87f7bd339e
2 changed files with 10 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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()
},
}