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

Function isJetbrainsProcess

agent/agentssh/jetbrainstrack.go:113–126  ·  view source on GitHub ↗
(cmdline string)

Source from the content-addressed store, hash-verified

111}
112
113func isJetbrainsProcess(cmdline string) bool {
114 opts := []string{
115 MagicProcessCmdlineJetBrains,
116 MagicProcessCmdlineToolbox,
117 MagicProcessCmdlineGateway,
118 }
119
120 for _, opt := range opts {
121 if strings.Contains(strings.ToLower(cmdline), strings.ToLower(opt)) {
122 return true
123 }
124 }
125 return false
126}

Callers 1

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected