From 74553248d5e5e3b5e60a8b40c80a2514d5d48884 Mon Sep 17 00:00:00 2001 From: Glutexo Date: Sat, 9 Nov 2024 19:39:53 +0100 Subject: [PATCH 1/3] Rename parsed_switches to switches For conciseness. --- lib/cli.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.ex b/lib/cli.ex index 6a76a11..2a66d1f 100644 --- a/lib/cli.ex +++ b/lib/cli.ex @@ -9,9 +9,9 @@ defmodule Onigumo.CLI do aliases: [C: :working_dir], strict: [working_dir: :string] ) do - {parsed_switches, [component], []} -> + {switches, [component], []} -> {:ok, module} = Map.fetch(@components, String.to_atom(component)) - working_dir = Keyword.get(parsed_switches, :working_dir, File.cwd!()) + working_dir = Keyword.get(switches, :working_dir, File.cwd!()) module.main(working_dir) _ -> From ff622923cf1394e9eb395ee9336a71a51ad7a84d Mon Sep 17 00:00:00 2001 From: dstroch Date: Sat, 9 Nov 2024 19:56:10 +0100 Subject: [PATCH 2/3] Use latest version of OTP and elixir for CI --- .github/workflows/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index ef756c9..ac0f4e7 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -18,8 +18,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - elixir-version: '1.12.3' - otp-version: '24.1' + elixir-version: 'latest' + otp-version: 'latest' - name: Restore dependencies cache uses: actions/cache@v3 with: From 548cb3aa29e916eb7629787ba8594b45a8c164c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20=C5=A0troch?= <45515588+nappex@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:59:28 +0100 Subject: [PATCH 3/3] Remove redundant quotes Co-authored-by: Glutexo --- .github/workflows/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index ac0f4e7..cce7769 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -18,8 +18,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - elixir-version: 'latest' - otp-version: 'latest' + elixir-version: latest + otp-version: latest - name: Restore dependencies cache uses: actions/cache@v3 with: