MCPcopy Create free account
hub / github.com/Noumena-Network/code / isExecutableBlockLanguage

Function isExecutableBlockLanguage

src/cli/up.ts:117–127  ·  view source on GitHub ↗
(language: string)

Source from the content-addressed store, hash-verified

115}
116
117function isExecutableBlockLanguage(language: string): boolean {
118 const normalized = language.trim().toLowerCase()
119 return (
120 normalized === '' ||
121 normalized === 'bash' ||
122 normalized === 'sh' ||
123 normalized === 'shell' ||
124 normalized === 'zsh' ||
125 normalized === 'fish'
126 )
127}
128
129function extractExecutableBlocks(section: Section): ScriptBlock[] {
130 const lines = section.content.split(/\r?\n/)

Callers 1

extractExecutableBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected