Function
buildDisabledMessage
(
toolName: string,
flag: string,
categoryLabel?: string,
)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | function buildDisabledMessage( |
| 28 | toolName: string, |
| 29 | flag: string, |
| 30 | categoryLabel?: string, |
| 31 | ): string { |
| 32 | const reason = categoryLabel |
| 33 | ? `is in category ${categoryLabel} which` |
| 34 | : `requires experimental feature ${flag} and`; |
| 35 | |
| 36 | return `Tool ${toolName} ${reason} is currently disabled. Enable it by running chrome-devtools start ${flag}=true. For more information check the README.`; |
| 37 | } |
| 38 | |
| 39 | function getCategoryStatus( |
| 40 | category: ToolCategory, |
Tested by
no test coverage detected