lib/softcover/cli.rb in softcover-1.2.4 vs lib/softcover/cli.rb in softcover-1.2.5

- old
+ new

@@ -264,9 +264,17 @@ Softcover::Config[key] = nil puts 'Config var removed.' end + # =============================================== + # Utilities + # =============================================== + desc "add_exercises", "Add exercise id elements as spans (warning: files are overwritten)" + define_method "exercises" do + Softcover::Commands::Exercises.add_to_chapters! + end + protected def ask_without_echo(*args) system "stty -echo" ret = ask *args system "stty echo"