Jump in the command line with the master of CLIpso (yet another CLI command suite library, which is basically usable right now, but needs much better documentation)
As it stands right now, the handle method for OuterApp in the following example never has a chance to execute:
require 'belafonte'
class InnerApp < Belafonte::App
title "inner"
def handle
stdout.puts "This is the inner app"
end
end
class OuterApp < Belafonte::App
title "outer"
mount InnerApp
def handle
stdout.puts "This is the outer app"
end
end
exit OuterApp.new(ARGV).execute!
I'm beginning to wonder if the above scenario is realistic. Should OuterApp#handle ever get called, or is it reasonable to expect that the top-level of a command suite is just a wrapper?
As it stands right now, the
handle
method forOuterApp
in the following example never has a chance to execute: