Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
remove orElse variants from command
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Dec 4, 2023
1 parent 5c24ea4 commit 262caa0
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 341 deletions.
9 changes: 2 additions & 7 deletions src/internal/cliApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,11 @@ const prefixCommand = <A>(self: Command.Command<A>): ReadonlyArray<string> => {
break
}
case "Map": {
command = command.command as InternalCommand.Instruction
break
}
case "OrElse": {
prefix = ReadonlyArray.empty()
command = undefined
command = command.command
break
}
case "Subcommands": {
command = command.parent as InternalCommand.Instruction
command = command.parent
break
}
}
Expand Down
Loading

0 comments on commit 262caa0

Please sign in to comment.