MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / Validate

Function Validate

internal/keys/parse.go:135–139  ·  view source on GitHub ↗

Validate returns an error if the key specification is not recognized.

(spec string)

Source from the content-addressed store, hash-verified

133
134// Validate returns an error if the key specification is not recognized.
135func Validate(spec string) error {
136 _, _, _, err := Parse(spec)
137
138 return err
139}
140
141// CanonicalID returns a unique identifier for a parsed key combination.
142func CanonicalID(key tcell.Key, r rune, mod tcell.ModMask) string {

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected