struct

Fluxion::PackageAction

Inherits Struct < Value < Object

A pre-install action a package entry may run before its own packages, such as refreshing metadata or upgrading the system. Kept as typed data rather than a free-form command so plan can preview it and validation can reject a verb the selected manager does not have.

Constants

SUPPORTED = {PackageManager::Apt => ["update", "upgrade", "dist-upgrade"] of ::String, PackageManager::Dnf => ["check-update", "upgrade", "swap", "groupupdate", "group-update"] of ::String, PackageManager::Pacman => ["sync-upgrade", "syu", "upgrade"] of ::String, PackageManager::Paru => ["sync-upgrade", "syu", "upgrade"] of ::String, PackageManager::Yay => ["sync-upgrade", "syu", "upgrade"] of ::String, PackageManager::Zypper => ["refresh", "update", "dup", "dup-from"] of ::String}

The actions each manager accepts, as documented for WorkstationProfile package kinds.

Constructors

new(action : String, args : Array(String) = [] of String)
Source

Class methods

supported?(manager : PackageManager, action : String) : Bool
Source
supported_for(manager : PackageManager) : Array(String)
Source

Instance methods

action
Source
args
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source