Skip to content

Commit

Permalink
fix: syntax not being a component
Browse files Browse the repository at this point in the history
  • Loading branch information
LupusVirtute committed Apr 4, 2023
1 parent 89e17e0 commit f9c1f9a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ class PreRunPickSubCommand(command: CommandLupi) : PreRunCommandComponent(comman
preFix.sendIfNotEmpty(sender)
var idx = 1
for (subCommand in command.subCommands) {
val commandFullName = subCommand.fullName
val syntax = subCommand.rawSyntax
val syntax = subCommand.syntax

val isDescriptionI18nComponent = subCommand.isDescriptionI18nComponent

val commandFullNameBinded = Placeholder.parsed("command", commandFullName)
val commandFullNameBinded = Placeholder.parsed("command", command.name)

val syntaxKeyValue = Placeholder.parsed("syntax", syntax)
val syntaxKeyValue = Placeholder.component("syntax", syntax)

val descKeyValue =
if(isDescriptionI18nComponent) Placeholder.component("desc", subCommand.descriptionComponent)
Expand Down

0 comments on commit f9c1f9a

Please sign in to comment.