Packages

YeMUX Yaml-to-tMUX converter creates the shell commands for a new tmux session from a YAML file, attaching to the session if it already runs

Current section

Files

Jump to
yemux lib yemux error.ex
Raw

lib/yemux/error.ex

defmodule Yemux.Error do
def format_missing_keys(keys, filename) do
{sing_or_plur, is_or_are} =
case keys do
[_] -> {"", "is"}
_ -> {"s", "are"}
end
"the key#{sing_or_plur} `#{keys |> Enum.join(", ")}` #{is_or_are} missing in file: `#{filename}`"
end
end
# SPDX-License-Identifier: Apache-2.0