diff --git a/src/core/utils.ts b/src/core/utils.ts index 3796799e..a57949a3 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -30,13 +30,15 @@ function printTree( const hasNext = index++ < total - 1 const { children } = child - treeStr += `${`${parentPre}${hasNext ? '├' : '└'}─ `}${child}\n` + treeStr += `${`${parentPre}${hasNext ? '├' : '└'}${ + '─' + (children.size > 0 ? '┬' : '') + } `}${child}\n` if (children) { treeStr += printTree( children, level + 1, - `${parentPre}${hasNext ? '│' : ' '} ` + `${parentPre}${hasNext ? '│' : ' '} ` ) } }