Sha256: d0153685c633f9b6603076cb995b760672587683eefafc6eed0028f04079a7de
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
#!/usr/bin/env ruby require "technologist" require "slop" def framework_report(title, frameworks) return if frameworks.empty? puts title frameworks.each do |framework| puts "* #{framework}" end end def main(path) result = Technologist::Repository.new(path) if result.primary_frameworks.empty? && result.secondary_frameworks.empty? puts "No known frameworks could be detected." puts <<-END.gsub(/^ {4}/, '') If you think that a framework should be detected for this repository you could add a new rule by creating a pull request on Github (see https://github.com/koffeinfrei/technologist#contributing) or report an issue https://github.com/koffeinfrei/technologist/issues/new. Thanks! END else framework_report('Primary Frameworks', result.primary_frameworks) framework_report('Secondary Frameworks', result.secondary_frameworks) end end Slop.parse do banner "Usage: #{File.basename($0)} [options] [repository_path]" run do |opts, args| if args.empty? args << Dir.pwd end main(args.join(' ')) end on '-v', '--version', 'print the version' do puts Technologist::VERSION exit end on '-h', '--help' do puts help exit end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
technologist-0.6.1 | exe/technologist |
technologist-0.6.0 | exe/technologist |
technologist-0.5.0 | exe/technologist |