lib/aia/main.rb in aia-0.4.4 vs lib/aia/main.rb in aia-0.5.0
- old
+ new
@@ -19,10 +19,16 @@
def initialize(args= ARGV)
AIA::Tools.load_tools
AIA::Cli.new(args)
+ if AIA.config.debug?
+ debug_me('== CONFIG AFTER CLI =='){[
+ "AIA.config"
+ ]}
+ end
+
@logger = AIA::Logging.new(AIA.config.log_file)
@logger.info(AIA.config) if AIA.config.debug? || AIA.config.verbose?
@prompt = AIA::Prompt.new.prompt
@@ -60,11 +66,11 @@
def call
@engine.execute_my_directives
if AIA.config.chat?
- AIA.config.output_file = STDOUT
+ AIA.config.out_file = STDOUT
AIA.config.extra = "--quiet" if 'mods' == AIA.config.backend
end
# TODO: the context_files left in the @arguments array
# should be verified BEFORE asking the user for a
@@ -101,10 +107,10 @@
)
result = backend.run
- AIA.config.output_file.write result
+ AIA.config.out_file.write result
logger.prompt_result(@prompt, result)
if AIA.config.chat?