lib/discourse_theme/cli.rb in discourse_theme-0.3.3 vs lib/discourse_theme/cli.rb in discourse_theme-0.3.4

- old
+ new

@@ -91,14 +91,13 @@ theme = theme_list.find { |t| t["id"] == theme_id } end if !theme || theme["component"] == false options = {} - options["Add missing but leave all extra components as is"] = :add - options["Add missing and remove superfluous"] = :sync - options["Do nothing"] = :none + options["Yes"] = :sync + options["No"] = :none options = options.sort_by { |_, b| b == components.to_sym ? 0 : 1 }.to_h if components - choice = Cli.select('How would you like to update child theme components?', options.keys) + choice = Cli.select('Would you like to update child theme components?', options.keys) settings.components = components = options[choice].to_s end uploader = DiscourseTheme::Uploader.new(dir: dir, client: client, theme_id: theme_id, components: components)