#!/usr/bin/env ruby require 'mcli' require 'juans_world' require 'juans_world/commands/app.rb' class Juan< MCLI::Command register_as_root def run help end def help puts <<~HERE Welcome to Juan's world! Verion: #{JuansWorld::VERSION} Available Commands: #{list_commands} HERE end private def list_commands MCLI::CommandGroup.commands.map do |name, klass| " #{name}: #{klass.description}" end.join("\n") rescue => e puts e.inspect end end MCLI.run