Class: Factorix::CLI::Commands::MOD::Image::Edit

Inherits:
Base
  • Object
show all
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

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

Parameters:

  • mod_name (String)

    the MOD name

  • image_ids (Array<String>)

    array of image IDs



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