Skip to content

Commit d731e05

Browse files
author
sebastian
committed
chore: add comment about format issue
1 parent 2877e3f commit d731e05

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/sss/stanza.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,14 @@ func (stanza *SSSStanza) getTreeAsString(indent int, printIdFn PrintIdFunction)
379379
stanzaType = fmt.Sprintf("sss (t=%x)", share.Threshold)
380380
}
381381

382+
// TODO: the formatting lacks '|' lines in nesting, e.g.
383+
// sss (t=2)
384+
// ├─ piv-p256
385+
// ├─ sss (t=2)
386+
// ├─ x25519 [id=2]
387+
// └─ x25519 [id=3]
388+
// └─ x25519 [id=4]
389+
382390
tree += fmt.Sprintf("%s%s %s%s\n", strings.Repeat(" ", line_indent+indent), box_char, stanzaType, id)
383391

384392
if share.Shares != nil {

0 commit comments

Comments
 (0)