lib/aia.rb in aia-0.5.10 vs lib/aia.rb in aia-0.5.11
- old
+ new
@@ -18,10 +18,11 @@
tramp_require('debug_me') {
include DebugMe
}
require 'hashie'
+require 'os'
require 'pathname'
require 'reline'
require 'shellwords'
require 'tempfile' # SMELL: is this still being used?
@@ -35,10 +36,11 @@
require 'prompt_manager'
require 'prompt_manager/storage/file_system_adapter'
require_relative "aia/version"
+require_relative "aia/clause"
require_relative "aia/main"
require_relative "core_ext/string_wrap"
module AIA
class << self
@@ -51,9 +53,15 @@
# If the args contain an "-i" or and "--interactive"
# flag could this turn into some kind of
# conversation REPL?
AIA::Main.new(args).call
+ end
+
+
+ def speak(what)
+ return unless AIA.config.speak?
+ system "say #{Shellwords.escape(what)}" if OS.osx?
end
end
end