mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-05 13:09:25 +09:00
cli: better formatting of lists (#2951)
This commit is contained in:
1 parent
c8376e44a2
commit
f3f2d30004
2 files changed
+14
-11
No files matched your search
@@ -107,10 +107,10 @@ var listPreAuthKeys = &cobra.Command{
|
||||
aclTags := ""
|
||||
|
||||
for _, tag := range key.GetAclTags() {
|
||||
aclTags += "," + tag
|
||||
aclTags += "\n" + tag
|
||||
}
|
||||
|
||||
aclTags = strings.TrimLeft(aclTags, ",")
|
||||
aclTags = strings.TrimLeft(aclTags, "\n")
|
||||
|
||||
tableData = append(tableData, []string{
|
||||
strconv.FormatUint(key.GetId(), 10),
|
||||
|
||||
Reference in new issue
Block a user