diff options
Diffstat (limited to '.local/bin/plumber')
-rwxr-xr-x | .local/bin/plumber | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/plumber b/.local/bin/plumber index e2c186d..2cf250f 100755 --- a/.local/bin/plumber +++ b/.local/bin/plumber @@ -29,12 +29,16 @@ defmodule ArgParser do reverse_words: "reverse->words", singleline: "text->singleline", slugize: "text->slugize", + urlize: "text->urlize", ] cond do opts[:option] == options[:letterize] -> TextPlumber.firstLetterOfWordsIn(opts[:text]) |> IO.binwrite() + opts[:option] == options[:urlize] -> + URI.encode(opts[:text]) |> IO.binwrite() + opts[:option] == options[:slugize] -> opts[:text] |> String.normalize(:nfd) |