Excellent HTTPS API prep-wor by Dillinger
This commit is contained in:
parent
8d5e1ab6b8
commit
df20ee2de6
14
cmd.go
14
cmd.go
@ -55,7 +55,7 @@ var suggestions = []cli.Suggest{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func completer(in cli.Document) []cli.Suggest {
|
func completer(in cli.Document) []cli.Suggest {
|
||||||
c := in.GetWordBeforeCursor()
|
c := in.CurrentLineBeforeCursor()
|
||||||
if c == "" {
|
if c == "" {
|
||||||
return []cli.Suggest{}
|
return []cli.Suggest{}
|
||||||
}
|
}
|
||||||
@ -63,12 +63,6 @@ func completer(in cli.Document) []cli.Suggest {
|
|||||||
return cli.FilterHasPrefix(suggestions, c, true)
|
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
|
// Interpret is where we will actuall define our commands
|
||||||
func executor(cmd string) {
|
func executor(cmd string) {
|
||||||
cmd = strings.TrimSpace(cmd)
|
cmd = strings.TrimSpace(cmd)
|
||||||
@ -275,6 +269,10 @@ func executor(cmd string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getHelp(target string) {
|
func getHelp(target string) {
|
||||||
|
fmt.Println("pRaNkeD! (help not available just yet.)")
|
||||||
|
fmt.Println()
|
||||||
|
return
|
||||||
|
/*
|
||||||
var lines []string
|
var lines []string
|
||||||
|
|
||||||
lines = append(lines, "help: "+target)
|
lines = append(lines, "help: "+target)
|
||||||
@ -296,7 +294,7 @@ func getHelp(target string) {
|
|||||||
log.Error().Msg("Help entry not found!")
|
log.Error().Msg("Help entry not found!")
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func StartCLI() {
|
func StartCLI() {
|
||||||
|
Loading…
Reference in New Issue
Block a user