Sha256: f7632ee5f381b1dfd4d5fb8f98f70b210c5ecdaf4b657fd88726217747be8286
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
require "thor" require_relative "./cli" module GemBootstrap class MainCLI < Thor register GemBootstrap::CLI, "generate", "generate", "Generate the starting template for CLI" desc "usage", "Display help screen" def usage generate_usage = <<-EOT Usage/Synopsis: $gem_bootstrap [GEM_NAME] -g, --github-id [GITHUB_ID] -e, --email [EMAIL] -a, --author [AUTHOR] e.g. create a gem name 'awesome_gem' $gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II' EOT # help_text = <<-EOT # gem_bootstrap help [COMMAND] # Describe available commands or one specific command # gem_bootstrap usage # Display help screen # EOT puts generate_usage # puts help_text.gsub(/^\s+/, '') end default_task :usage end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem_bootstrap-0.1.1 | lib/gem_bootstrap/gem_bootstrap.rb |