Skip to content
Myr

Update command.go

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix typo in AddCommand method.

authored by Nan Xiao · committed by Nan Xiao · parent ee6224d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:command.go+1 added-1 removed
745 unmodified lines
746 nameLen := len(x.Name())747 if nameLen > c.commandsMaxNameLen {748 c.commandsMaxNameLen = nameLen749 }750 // If glabal normalization function exists, update all children750 // If global normalization function exists, update all children751 if c.globNormFunc != nil {752 x.SetGlobalNormalizationFunc(c.globNormFunc)753 }754 c.commands = append(c.commands, x)
446 unmodified lines