Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
epg / bin / epg
Size: Mime:
#!/usr/bin/env ruby

Signal.trap('SIGINT') {
  Process.waitall
  puts
  exit 1
}

require 'thor'
require 'everyday_thor_util'
require 'everyday-plugins'

include EverydayPlugins

Plugins.load_plugins 'epg'

EverydayThorUtil::SubCommandTypes.def_types(:command_ids, :flag, :command, :helper)
EverydayThorUtil::SubCommandTypes.def_helper(:helper, :print_info)

module Epg
  class DefaultCommands
    extend Plugin

    register :command, id: :path, parent: nil, name: 'path', short_desc: 'path SUBCOMMAND ARGS...', desc: 'print out the path of the file for a module'
    register(:command, id: :path_base, parent: :path, name: 'base', short_desc: 'base', desc: 'print out the path of the file for the base module') { puts __FILE__ }
  end
end

root_command = Class.new(Thor)
Plugins.get :command, root_command, nil

EverydayThorUtil::SubCommandTypes.add_debugging(root_command, nil, 'debug')

root_command.start(ARGV)