Class: Factorix::CLI::Commands::MOD::Image::Edit
- Includes:
- PortalSupport
- Defined in:
- lib/factorix/cli/commands/mod/image/edit.rb
Overview
Edit MOD’s image list on Factorio MOD Portal
Instance Method Summary collapse
-
#call(mod_name:, image_ids:) ⇒ void
Execute the edit command.
Methods inherited from Base
backup_support!, confirmable!, inherited, require_game_stopped!
Instance Method Details
#call(mod_name:, image_ids:) ⇒ void
This method returns an undefined value.
Execute the edit command
26 27 28 29 30 31 32 |
# File 'lib/factorix/cli/commands/mod/image/edit.rb', line 26 def call(mod_name:, image_ids:, **) # Edit images via Portal portal.edit_mod_images(mod_name, image_ids) say "Image list updated successfully!", prefix: :success say "Total images: #{image_ids.size}", prefix: :info end |