Class: Factorix::CLI::Commands::MOD::Image::Edit
- Inherits:
-
Base
- Object
- Dry::CLI::Command
- Base
- Factorix::CLI::Commands::MOD::Image::Edit
- Includes:
- PortalSupport
- Defined in:
- lib/factorix/cli/commands/mod/image/edit.rb,
sig/factorix/cli/commands/mod/image/edit.rbs
Overview
Edit MOD's image list on Factorio MOD Portal
Instance Attribute Summary collapse
-
#portal ⇒ Portal
readonly
Returns the value of attribute 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 Attribute Details
#portal ⇒ Portal (readonly)
Returns the value of attribute portal.
11 12 13 |
# File 'sig/factorix/cli/commands/mod/image/edit.rbs', line 11 def portal @portal end |
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 |