lib/command/remove.rb in narou-1.7.2 vs lib/command/remove.rb in narou-2.0.0
- old
+ new
@@ -3,10 +3,11 @@
# Copyright 2013 whiteleaf. All rights reserved.
#
require_relative "../narou"
require_relative "../helper"
+require_relative "../input"
module Command
class Remove < CommandBase
def self.oneline_help
"小説を削除します"
@@ -75,10 +76,10 @@
if Narou.novel_frozen?(target)
puts "#{title} は凍結中です\n削除を中止しました"
next
end
unless @options["yes"]
- next unless Helper.confirm("#{title} を#{(@options["with-file"] ? "“完全に”" : "")}削除しますか")
+ next unless Narou::Input.confirm("#{title} を#{(@options["with-file"] ? "“完全に”" : "")}削除しますか")
end
Downloader.remove_novel(target, @options["with-file"])
puts "<bold><green>#{TermColorLight.escape(title)} を削除しました</green></bold>".termcolor
end
end