MCPcopy Create free account
hub / github.com/redis/RedisInsight / arrayCommandToString

Function arrayCommandToString

redisinsight/ui/src/utils/commands.ts:296–304  ·  view source on GitHub ↗
(command: string[] | null)

Source from the content-addressed store, hash-verified

294}
295
296export const arrayCommandToString = (command: string[] | null) => {
297 if (isArray(command)) {
298 return command
299 .map((arg) => (arg.includes(' ') ? `"${arg}"` : arg))
300 .join(' ')
301 }
302
303 return null
304}
305
306export const getCommandMarkdown = (
307 command: ICommand,

Callers

nothing calls this directly

Calls 1

isArrayFunction · 0.50

Tested by

no test coverage detected