# make sure subcommands are properly aligned

`7f52074`→[main](/content/gh/entireio/cli/commits/main/index.html)· Soph·1mo ago·1 file·+12 added/-3

## Sessions

942f12e5f6c3View transcript

[?\
ENTIRE_TOKEN Security and Validation FixesClaude Code·1 step](/content/gh/entireio/cli/session/05fedc75-9ca1-4638-9894-01560fe3498a#timeline-942f12e5f6c3/index.html)

## Changes

1

- cmd/entire/cli

- Mlabs.go+12/-3

```
2 unmodified lines

3
4
5
6
7
8
9
85 unmodified lines

95
96
97
98
99
100
101
102
103
104
105
106
107
100
108
109
110
111
2 unmodified lines

114
115
116
109
117
118
119
120
112
121
122

2 unmodified lines

import (
	"fmt"
	"strings"
	"unicode/utf8"

"github.com/spf13/cobra"
)
85 unmodified lines

}

func renderExperimentalCommands(commands []experimentalCommandInfo) string {
	width := 0
	for _, info := range commands {
		if w := utf8.RuneCountInString(info.Invocation); w > width {
			width = w
		}
	}

var out strings.Builder
	for _, info := range commands {
		out.WriteString("  ")
		out.WriteString(padRight(info.Invocation, 16))
		out.WriteString(padRight(info.Invocation, width))
		out.WriteByte(' ')
		out.WriteString(info.Summary)
		out.WriteByte('\n')
2 unmodified lines
}

func padRight(value string, width int) string {
	if len(value) >= width {
		n := utf8.RuneCountInString(value)
		if n >= width {
			return value
		}
		return value + strings.Repeat(" ", width-len(value))
	}
	return value + strings.Repeat(" ", width-n)
}
```

Mcmd/entire/cli/labs.go+12/-3
