Skip to content

Commit

Permalink
Update cli roll handling to use multi_roll!
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Nov 25, 2024
1 parent 1ccf226 commit 9a782f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ defmodule ExTTRPGDev.CLI do

def handle_roll(%Optimus.ParseResult{args: %{dice: dice}}) do
dice
|> Enum.map(fn dice_spec -> {dice_spec, Dice.roll(dice_spec)} end)
|> Dice.multi_roll!()
|> Enum.each(fn {dice_spec, results} -> IO.inspect(results, label: dice_spec) end)
end

Expand Down

0 comments on commit 9a782f4

Please sign in to comment.