From df20ee2de609801e529bc95a27213bfe3b82bcdb Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sat, 21 Aug 2021 01:45:32 -0700 Subject: [PATCH] Excellent HTTPS API prep-wor by Dillinger --- cmd.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd.go b/cmd.go index cebb3cf..42bcecb 100644 --- a/cmd.go +++ b/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() {