class

Fluxion::TUI::Selection

Inherits Reference < Object

Which parts of a profile the user chose to run.

Selection is by job and by step rather than by item: choosing individual packages out of a list is a level of control nobody has asked for, and it would make the resulting run impossible to describe afterwards.

Constructors

new(profile : Profile)
Source

Instance methods

any_selected?
Source
apply

The profile as chosen. Dependencies are narrowed to jobs that survived, so a kept job does not wait forever on one the user removed.

Source
job?(name : String) : Bool
Source
profile
Source
select_all
Source
select_none
Source
selected_items
Source
selected_steps
Source
step?(name : String) : Bool
Source
toggle_job(job : Job) : Nil

Toggling a job takes its steps with it: a job with nothing selected is indistinguishable from a deselected job, so they are kept in step.

Source
toggle_step(job : Job, step : Step) : Nil
Source