Using the tfa command with a space between the main and subcommand caused a panic
MODIFY
commands/commandimpls/tfa.go
commands/commandimpls/tfa.go
@@ -101,7 +101,7 @@ func (cmd *TFACmd) Execute(writer io.Writer, parameters []string) {
if len(parameters) == 0 {
cmd.PrintHelp(writer)
} else {
- combinedName := cmd.Name() + "-" + parameters[1]
+ combinedName := cmd.Name() + "-" + parameters[0]
if commands.CommandEquals(cmd.tfaEnable, combinedName) {
cmd.tfaEnable.Execute(writer, parameters[1:])
} else if commands.CommandEquals(cmd.tfaDisable, combinedName) {

Using the tfa command with a space between the main and subcommand caused a panic