Packages

Command line tools to aid developers on daily work.

Current section

Files

Jump to
rit_cli lib rit_cli tunnel run parsers parameters input_parser.ex
Raw

lib/rit_cli/tunnel/run/parsers/parameters/input_parser.ex

defmodule RitCLI.Tunnel.Run.Parameters.InputParser do
@moduledoc false
alias RitCLI.Tunnel.Run.Runner
@spec parse(Runner.t()) :: Runner.t()
def parse(%Runner{} = runner) do
case Map.get(runner.settings, "input") do
nil -> runner
input -> struct(runner, input: Map.merge(runner.input, input))
end
end
end