feat: issue #25 implemented - cli

This commit is contained in:
2026-07-17 14:26:14 +02:00
parent e4fa61ae07
commit 0f3f1efa08
24 changed files with 2899 additions and 873 deletions

View File

@@ -487,6 +487,15 @@ defmodule BDS.TUI do
index = Enum.find_index(options, &(&1 == field.value)) || 0
{:noreply, update_field(state, field.key, Enum.at(options, rem(index + 1, length(options))))}
%{type: :action} = field ->
message =
case SettingsForm.run_action(field.key) do
{:ok, message} -> message
{:error, message} -> message
end
{:noreply, toast(state, field.label, message)}
_other ->
{:noreply, state}
end