MCPcopy Index your code
hub / github.com/coder/coder / sanitizeAgentChatSendShortcut

Function sanitizeAgentChatSendShortcut

coderd/users.go:1556–1562  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

1554}
1555
1556func sanitizeAgentChatSendShortcut(raw string) codersdk.AgentChatSendShortcut {
1557 shortcut := codersdk.AgentChatSendShortcut(raw)
1558 if slices.Contains(codersdk.ValidAgentChatSendShortcuts, shortcut) {
1559 return shortcut
1560 }
1561 return codersdk.AgentChatSendShortcutEnter
1562}
1563
1564func isValidFontName(font codersdk.TerminalFontName) bool {
1565 return slices.Contains(codersdk.TerminalFontNames, font)

Callers 2

Calls 2

AgentChatSendShortcutTypeAlias · 0.92
ContainsMethod · 0.45

Tested by

no test coverage detected