Skip to content

Commit

Permalink
Merge pull request #27 from TTRPG-Dev/qmalcolm--fix-roll-rendering-as…
Browse files Browse the repository at this point in the history
…cii-bug

Ensure CLI results for rolling dice are printed as integers
  • Loading branch information
QMalcolm authored Nov 25, 2024
2 parents d9652a1 + dc5714b commit 1bb2563
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ defmodule ExTTRPGDev.CLI do
def handle_roll(%Optimus.ParseResult{args: %{dice: dice}}) do
dice
|> Dice.multi_roll!()
|> Enum.each(fn {dice_spec, results} -> IO.inspect(results, label: dice_spec) end)
|> Enum.each(fn {dice_spec, results} ->
IO.inspect(results, label: dice_spec, charlists: :as_lists)
end)
end

def handle_system_subcommands([command | subcommands], %Optimus.ParseResult{
Expand Down

0 comments on commit 1bb2563

Please sign in to comment.