Excellent HTTPS API prep-wor by Dillinger

This commit is contained in:
kayos@tcp.direct 2021-08-21 01:45:32 -07:00
parent 8d5e1ab6b8
commit df20ee2de6

14
cmd.go

@ -55,7 +55,7 @@ var suggestions = []cli.Suggest{
}
func completer(in cli.Document) []cli.Suggest {
c := in.GetWordBeforeCursor()
c := in.CurrentLineBeforeCursor()
if c == "" {
return []cli.Suggest{}
}
@ -63,12 +63,6 @@ func completer(in cli.Document) []cli.Suggest {
return cli.FilterHasPrefix(suggestions, c, true)
}
// commands that we will list when the user runs "help"
var cmds = []string{
"scan",
"adapter",
}
// Interpret is where we will actuall define our commands
func executor(cmd string) {
cmd = strings.TrimSpace(cmd)
@ -275,6 +269,10 @@ func executor(cmd string) {
}
func getHelp(target string) {
fmt.Println("pRaNkeD! (help not available just yet.)")
fmt.Println()
return
/*
var lines []string
lines = append(lines, "help: "+target)
@ -296,7 +294,7 @@ func getHelp(target string) {
log.Error().Msg("Help entry not found!")
fmt.Println()
}
*/
}
func StartCLI() {