#!/usr/bin/env ruby -> { its -> { a } } trap('INT') { exit! } require_relative '../../../../lib/vedeu' # define an interface # Vedeu::Interfaces.define do |interface| # interface.add("", ...) # end class Fake def self.dispatch puts "Fake dispatched..." [ [[:white, :red], "Fake executed...", :reset], [[:white, :green], "Test executed...", :reset], ] end end # use default interface Vedeu::Interfaces.default # define some commands Vedeu::Commands.define do |command| command.add("test", Fake) end # create main loop Vedeu::Application.start