mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 02:09:01 +02:00
add rule.on directives "cookie", "form", "postform"
This commit is contained in:
@@ -3,8 +3,9 @@ package rules
|
||||
import "strings"
|
||||
|
||||
type Help struct {
|
||||
command string
|
||||
args map[string]string // args[arg] -> description
|
||||
command string
|
||||
description string
|
||||
args map[string]string // args[arg] -> description
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -23,6 +24,11 @@ func (h *Help) String() string {
|
||||
sb.WriteString(arg)
|
||||
sb.WriteString("> ")
|
||||
}
|
||||
if h.description != "" {
|
||||
sb.WriteString("\n\t")
|
||||
sb.WriteString(h.description)
|
||||
sb.WriteRune('\n')
|
||||
}
|
||||
sb.WriteRune('\n')
|
||||
for arg, desc := range h.args {
|
||||
sb.WriteRune('\t')
|
||||
|
||||
Reference in New Issue
Block a user