Sha256: 3c46fd9c64bde487e4426a6af0696e35db944f5d73dd989107af1ad2ec93c710
Contents?: true
Size: 685 Bytes
Versions: 26
Compression:
Stored size: 685 Bytes
Contents
#!/usr/bin/env ruby require 'utils' require 'infobar' config = Utils::ConfigFile.new config.configure_from_paths roots = %w[ . ] + `bundle list --paths`.lines.map(&:chomp) IO.popen('cscope 2>/dev/null -R -b -i - -f cscope.out', 'w') do |scope| finder = Utils::Finder.new( pattern: '', roots: roots, config: config, ) finder.search.paths.with_infobar(label: 'Collecting files') do |path| scope.puts path +infobar end infobar.newline Infobar.busy(label: 'Creating cstags', frames: :braille7) do scope.close end end if megabytes = File.size('cscope.out').to_f / 1024 ** 2 rescue nil infobar.puts 'Created %.3fM of cstags.' % megabytes end
Version data entries
26 entries across 26 versions & 1 rubygems