Sha256: 984d482e07757d85c023d4a833f2e61a9a5098b109d266aface57faa565543dd
Contents?: true
Size: 647 Bytes
Versions: 6
Compression:
Stored size: 647 Bytes
Contents
#!/usr/bin/env ruby require 'thor' # Set up the load path so we can load things from our own lib $LOAD_PATH << File.expand_path('../../lib', __FILE__) require '<%= config[:project] %>' # Skeleton CLI class class <%= config[:classname] %>CLI < Thor check_unknown_options! end # # Load all commands # <%= config[:classname] %>.before_command_load cmd_root = '../../lib/commands/*' Dir[File.expand_path(cmd_root, __FILE__)].each do |cmd| require cmd end <%= config[:classname] %>.after_command_load # Janky way of avoiding starting the CLI if we're running under rspec. <%= config[:classname] %>CLI.start unless $PROGRAM_NAME =~ /rspec/
Version data entries
6 entries across 6 versions & 1 rubygems