MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / getRequired

Function getRequired

cmd/inject-cli/main.go:807–819  ·  view source on GitHub ↗
(schema map[string]any)

Source from the content-addressed store, hash-verified

805}
806
807func getRequired(schema map[string]any) map[string]bool {
808 req := make(map[string]bool)
809 reqList, ok := schema["required"].([]any)
810 if !ok {
811 return req
812 }
813 for _, r := range reqList {
814 if s, ok := r.(string); ok {
815 req[s] = true
816 }
817 }
818 return req
819}
820
821func cmdRulesDelete(c *apiClient) {
822 rules, err := c.getRules()

Callers 1

buildArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected